SetFromXYZAxes (SIRotation)
Description
Sets this rotation from three orthonormal axes. No verification is performed about their orthonormality.
Scripting Syntax
SIRotation.SetFromXYZAxes( xAxis, yAxis, zAxis )
C# Syntax
SIRotation.SetFromXYZAxes( SIVector3 in_pXAxis, SIVector3 in_pYAxis, SIVector3 in_pZAxis );Parameters
|
Parameter |
Type |
Description |
|
xAxis |
unitary X axis (orthogonal to Y and Z) |
|
|
yAxis |
unitary Y axis (orthogonal to X and Z) |
|
|
zAxis |
unitary Z axis (orthogonal to X and Y) |
Examples
VBScript Example
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
See Also
|
|
|
Autodesk Softimage v7.5