Tao.Ode SDK Documentation

Ode.dRFrom2Axes Method 

Compute the rotation matrix R from the two vectors `a' (ax,ay,az) and `b' (bx,by,bz). `a' and `b' are the desired x and y axes of the rotated coordinate system. If necessary, `a' and `b' will be made unit length, and `b' will be projected so that it is perpendicular to `a'. The desired z axis is the cross product of `a' and `b'.

[Visual Basic]
Public Shared Sub dRFrom2Axes( _
   ByRef R As dMatrix3, _
   ByVal ax As Single, _
   ByVal ay As Single, _
   ByVal az As Single, _
   ByVal bx As Single, _
   ByVal by As Single, _
   ByVal bz As Single _
)
[C#]
public static void dRFrom2Axes(
   out dMatrix3 R,
   float ax,
   float ay,
   float az,
   float bx,
   float by,
   float bz
);

Parameters

R
A dMatrix3
ax
A dReal
ay
A dReal
az
A dReal
bx
A dReal
by
A dReal
bz
A dReal

See Also

Ode Class | Tao.Ode Namespace