SITransformation.SetRotationFromXYZAxes
 
 
 

SITransformation.SetRotationFromXYZAxes

Description

Sets the rotation part of this transformation from three orthonormal axes. No verification is performed about their orthonormality.

C# Syntax

SITransformation.SetRotationFromXYZAxes( SIVector3 in_pXAxis, SIVector3 in_pYAxis, SIVector3 in_pZAxis );

Scripting Syntax

SITransformation.SetRotationFromXYZAxes( in_pXAxis, in_pYAxis, in_pZAxis );

Parameters

Parameter Type Description
in_pXAxis SIVector3 unitary X axis (orthogonal to Y and Z)
in_pYAxis SIVector3 unitary Y axis (orthogonal to X and Z)
in_pZAxis SIVector3 unitary Z axis (orthogonal to X and Y)

Examples

VBScript Example

dim t1, vx, vy, vz
' Create transformation.
set t1 = XSIMath.CreateTransform
' 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
t1.SetRotationFromXYZAxes vx, vy, vz

See Also

SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion