org.ode4j.cpp
Class OdeCppMath

java.lang.Object
  extended by org.ode4j.cpp.internal.ApiCppMathMisc
      extended by org.ode4j.cpp.internal.ApiCppMathRotation
          extended by org.ode4j.cpp.internal.ApiCppMathMatrix
              extended by org.ode4j.cpp.OdeCppMath

public abstract class OdeCppMath
extends ApiCppMathMatrix

From OdeMath.java.


Constructor Summary
OdeCppMath()
           
 
Method Summary
static void dNormalize3(DVector3 a)
          Potentially asserts on zero vec.
static void dNormalize4(DVector4 a)
          Potentially asserts on zero vec.
static void dPlaneSpace(DVector3 n, DVector3 p, DVector3 q)
          given a unit length "normal" vector n, generate vectors p and q vectors that are an orthonormal basis for the plane space perpendicular to n.
static boolean dSafeNormalize3(DVector3 a)
           
static boolean dSafeNormalize4(DVector4 a)
           
 
Methods inherited from class org.ode4j.cpp.internal.ApiCppMathMatrix
dDot, dDot, dDot, dDot, dFactorCholesky, dFactorLDLT, dInvertPDMatrix, dIsPositiveDefinite, dLDLTAddTL, dLDLTRemove, dMultiply0, dMultiply1, dMultiply2, dRemoveRowCol, dSetValue, dSetZero, dSolveCholesky, dSolveLDLT
 
Methods inherited from class org.ode4j.cpp.internal.ApiCppMathRotation
dDQfromW, dQFromAxisAndAngle, dQfromR, dQMultiply0, dQMultiply1, dQMultiply2, dQMultiply3, dQSetIdentity, dQtoR, dRFrom2Axes, dRFromAxisAndAngle, dRFromEulerAngles, dRfromQ, dRFromZAxis, dRSetIdentity
 
Methods inherited from class org.ode4j.cpp.internal.ApiCppMathMisc
dClearUpperTriangle, dMakeRandomMatrix, dMakeRandomVector, dMaxDifference, dMaxDifferenceLowerTriangle, dRand, dRandGetSeed, dRandInt, dRandReal, dRandSetSeed, dTestRand
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdeCppMath

public OdeCppMath()
Method Detail

dSafeNormalize3

public static boolean dSafeNormalize3(DVector3 a)

dSafeNormalize4

public static boolean dSafeNormalize4(DVector4 a)

dNormalize3

public static void dNormalize3(DVector3 a)
Potentially asserts on zero vec.


dNormalize4

public static void dNormalize4(DVector4 a)
Potentially asserts on zero vec.


dPlaneSpace

public static void dPlaneSpace(DVector3 n,
                               DVector3 p,
                               DVector3 q)
given a unit length "normal" vector n, generate vectors p and q vectors that are an orthonormal basis for the plane space perpendicular to n. i.e. this makes p,q such that n,p,q are all perpendicular to each other. q will equal n x p. if n is not unit length then p will be unit length but q wont be.