SetRotationFromXYZAxes (SITransformation)

Description

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

Scripting Syntax

SITransformation.SetRotationFromXYZAxes( xAxis, yAxis, zAxis )

C# Syntax

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

Parameters

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)

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

 

 



Autodesk Softimage v7.5