jbt_anisotropic_lmetric_distance Class Reference
Anisotropic L metric. More...
#include <distance.h>
Inherits jbt_lmetric_distance.
List of all members.
Public Members
Detailed Description
Anisotropic L metric.
Given a direction and two p parameters it cubic interpolates between
the two p parameters based on the dot product of the displacement
vector and the given direction vector.
There is no algebraic equivelent for this distance metric. Therefore
the equation() function is not implemented.
Member Function Documentation
jbt_anisotropic_lmetric_distance::jbt_anisotropic_lmetric_distance( const jNorm3& N, jFlt p0, jFlt p1, jFlt a = 0, jFlt b = 1)
Construct an anisotropic L_p distance metric.
- N direction of anisotropy
- p0 p parameter in direction N
- p1 p parameter at 90 degrees from N
- a start parameter for cubic interpolation
- b finish parameter for cubic interpolation
the
a and
b parameters get passed to
smoothstep
jFlt jbt_anisotropic_lmetric_distance::f( const jVec3& )
jVec3 jbt_anisotropic_lmetric_distance::df( const jVec3&, jFlt )
The documentation for this class was generated from the following file:
JSP /
libjbt v0.1
mtigges@cpsc.ucalgary.ca