The Robot Application Programming Interface Delegate Project
RAPID Logo

RapidMath Class Reference

List of all members.

Static Public Member Functions

static double anglePiToPi (double angle)
 ensure angle is in range of -pi to pi
static double angleZeroToTwo (double angle)
 ensure angle is in range of 0 to pi*2
static double[] rotationMatrixToEuler (final float[] rmat, double[] retVal)
 See The Matrix and Quaternions FAQ at http://www.flipcode.com/documents/matrfaq.html#Q37 Assumes order of Y*P*R.
static float[] eulerToRotationMatrix (double[] euler, float[] retVal)
 see The Matrix and Quaternions FAQ at http://www.flipcode.com/documents/matrfaq.html#Q36 Assumes order of Y*P*R
static float[] identity3x3 (float[] retVal)

Static Public Attributes

static final double RAD2DEG = 180.0/Math.PI
static final double DEG2RAD = Math.PI/180.0
static final double TWO_PI = Math.PI * 2.0
static final double HALF_PI = Math.PI / 2.0
static final double EPSILON = 0.0005

Member Function Documentation

static double anglePiToPi ( double  angle) [static]
static double angleZeroToTwo ( double  angle) [static]
static float [] eulerToRotationMatrix ( double[]  euler,
float[]  retVal 
) [static]
static float [] identity3x3 ( float[]  retVal) [static]
static double [] rotationMatrixToEuler ( final float[]  rmat,
double[]  retVal 
) [static]
Parameters:
rmat3x3 row major rotation matrix
retValdouble array with at least 3 elements. If null, a 3 element array will be allocated for return value
Returns:
retVal

Here is the call graph for this function:


Member Data Documentation

final double DEG2RAD = Math.PI/180.0 [static]
final double EPSILON = 0.0005 [static]
final double HALF_PI = Math.PI / 2.0 [static]
final double RAD2DEG = 180.0/Math.PI [static]
final double TWO_PI = Math.PI * 2.0 [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines