Sets this rotation from three orthonormal axes. No verification is performed about their orthonormality.
SIRotation.SetFromXYZAxes( SIVector3 in_pXAxis, SIVector3 in_pYAxis, SIVector3 in_pZAxis ); |
SIRotation.SetFromXYZAxes( xAxis, yAxis, zAxis ); |
Parameter | Type | Description |
---|---|---|
xAxis | SIVector3 | unitary X axis (orthogonal to Y and Z) |
yAxis | SIVector3 | unitary Y axis (orthogonal to X and Z) |
zAxis | SIVector3 | unitary Z axis (orthogonal to X and Y) |
dim r1, vx, vy, vz ' Create rotation. set r1 = XSIMath.CreateRotation ' Create 3D vectors. set vx = XSIMath.CreateVector3(1.0, 1.0, 0.0) set vy = XSIMath.CreateVector3(-1.0, 1.0, 0.0) set vz = XSIMath.CreateVector3( 0.0, 0.0, 1.0) vx.Normalize vx vy.Normalize vy r1.SetFromXYZAxes vx, vy, vz |