SIQuaternion.AddInPlace

Description

Adds this quaternion to the quaternion q and stores the result in this quaternion.

C# Syntax

SIQuaternion.AddInPlace( SIQuaternion in_pQuat );

Scripting Syntax

SIQuaternion.AddInPlace( q );

Parameters

Parameter Type Description
q SIQuaternion quaternion operand

Examples

VBScript Example

dim q1, q2

' 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)

'q1 = q1 + q2

q1.AddInPlace q2

See Also

SIQuaternion.Add SIQuaternion.Sub SIQuaternion.SubInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion