Sets the rotation part of this transformation by using the quaternion representation.
SITransformation.SetRotationFromQuaternion( SIQuaternion in_pQuat ); |
SITransformation.SetRotationFromQuaternion( in_pQuat ); |
Parameter | Type | Description |
---|---|---|
in_pQuat | SIQuaternion | Quaternion operand |
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 |