SITransformation.SetRotationFromQuaternion

Description

Sets the rotation part of this transformation by using the quaternion representation.

C# Syntax

SITransformation.SetRotationFromQuaternion( SIQuaternion in_pQuat );

Scripting Syntax

SITransformation.SetRotationFromQuaternion( in_pQuat );

Parameters

Parameter Type Description
in_pQuat SIQuaternion Quaternion operand

Examples

VBScript Example

dim t1, q1

' Create transformation.

set t1 = XSIMath.CreateTransform

' Create Quaternion.

set q1 = XSIMath.CreateQuaternion

'Do something on q1

'Then use q1 to set the rotation part of t1

t1.SetRotationFromQuaternion q1

See Also

SITransformation.GetRotationQuaternion SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion