libjbt

jbt_anisotropic_superquadric_distance Class Reference

Anisotropic super-quadric metric. More...

#include <distance.h>

Inherits jbt_superquadric_distance.

List of all members.

Public Members


Detailed Description

Anisotropic super-quadric metric.

Given a direction and two ew,ns parameter setss it cubic interpolates between the two parameter sets 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_superquadric_distance::jbt_anisotropic_superquadric_distance( const jNorm3& N, jFlt ew0, jFlt ns0, jFlt ew1, jFlt ns1, int axis = 2, jFlt a = 0, jFlt b = 1)

Construct an anisotropic superquadric distance metric.

the a and b parameters get passed to smoothstep

jFlt jbt_anisotropic_superquadric_distance::f( const jVec3& )

Reimplemented from jbt_superquadric_distance.

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

Reimplemented from jbt_superquadric_distance.


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