libjbt

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.

the a and b parameters get passed to smoothstep

jFlt jbt_anisotropic_lmetric_distance::f( const jVec3& )

Reimplemented from jbt_lmetric_distance.

jVec3 jbt_anisotropic_lmetric_distance::df( const jVec3&, jFlt )

Reimplemented from jbt_lmetric_distance.


The documentation for this class was generated from the following file:
JSP / libjbt v0.1 mtigges@cpsc.ucalgary.ca