Add (SIQuaternion)

Description

Adds the quaternion q1 to the quaternion q2 and stores the result in this quaternion.

Scripting Syntax

SIQuaternion.Add( q1, q2 )

C# Syntax

SIQuaternion.Add( SIQuaternion in_pQuat1, SIQuaternion in_pQuat2 );

Parameters

Parameter

Type

Description

q1

SIQuaternion

quaternion operand

q2

SIQuaternion

quaternion operand

Examples

VBScript Example

dim q1, q2, q3
' Create Quaternions.
set q1 = XSIMath.CreateQuaternion(1.0, 1.0, 2.0, 3.0)
set q2 = XSIMath.CreateQuaternion(1.0, 4.0, 5.0, 6.0)
set q3 = XSIMath.CreateQuaternion
'q3 = q1 + q2
q3.Add q1, q2

See Also

SIQuaternion.AddInPlace

SIQuaternion.Sub

SIQuaternion.SubInPlace

SIVector3

SIMatrix3

SIMatrix4

SIRotation

SITransformation

SIQuaternion

 

 

 



Autodesk Softimage v7.5