32 else scale = (1.0-x.x)/(1.0-Sqr(x.x));
34 y.y = x.x + scale*Sqr(x.z);
38 z.z = x.x + scale*Sqr(x.y);
A 3D vector class.
Definition: math3d/primitives.h:136
Class declarations for useful 3D math types.
void GetCanonicalBasis(const Vector2 &x, Vector2 &y)
Definition: math3d/basis.h:19
Contains all the definitions in the Math3D package.
Definition: AnyGeometry.h:12
void setPerpendicular(const Vector2 &)
sets this to the vector rotated 90 degrees ccw
Definition: math3d/primitives.h:1000
A 2D vector class.
Definition: math3d/primitives.h:41
bool FuzzyEquals(double a, double b, double eps=dEpsilon)
Returns true if a and b are within +/- eps.
Definition: math.h:222