new ODE.Rotation(pointer)
D:/work/ODE.js/lib/ode.js, line 66
Name | Type | Description |
---|---|---|
pointer |
Number |
optional
heap memory pointer to cast into Rotation |
Methods
-
fromAxisAndAngle(ax, ay, az, angle){ODE.Rotation}
D:/work/ODE.js/lib/ode.js, line 111 -
Compute the rotation matrix as a rotation of angle radians along the axis (ax,ay,az).
Name Type Description ax
Number ay
Number az
Number angle
Number angle in radian
Returns:
Type Description ODE.Rotation -
fromEulerAngles(phi, theta, psi){ODE.Rotation}
D:/work/ODE.js/lib/ode.js, line 121 -
Compute the rotation matrix from the three Euler rotation angles in radians.
Name Type Description phi
theta
psi
Returns:
Type Description ODE.Rotation -
getArray(){Float32Array}
D:/work/ODE.js/lib/ode.js, line 101 -
get copy of the 3x3 matrix
Returns:
Type Description Float32Array -
getPointer(){Number}
D:/work/ODE.js/lib/ode.js, line 75 -
get offset address in heap memory
Returns:
Type Description Number -
setArray(mat){ODE.Rotation}
D:/work/ODE.js/lib/ode.js, line 89 -
Fill the 3x3 matrix
Name Type Description mat
Array.<Number> | Float32Array Returns:
Type Description ODE.Rotation -
setIdentity(){ODE.Rotation}
D:/work/ODE.js/lib/ode.js, line 82 -
Set matrix to the identity (i.e. no rotation).
Returns:
Type Description ODE.Rotation