SIQuaternion.Conjugate
 
 
 

SIQuaternion.Conjugate

Description

Conjugates the quaternion Q and stores the result in this quaternion.

C# Syntax

SIQuaternion.Conjugate( SIQuaternion in_pQuat );

Scripting Syntax

SIQuaternion.Conjugate( q );

Parameters

Parameter Type Description
q SIQuaternion quaternion to conjugate

Examples

1. VBScript Example

dim q1, q2
' Create Quaternions.
set q1 = XSIMath.CreateQuaternion (1.0, 1.0, 2.0, 3.0)
set q2 = XSIMath.CreateQuaternion
q2.Conjugate q1
Application.LogMessage " The conjugate of q1 is " & q2.w & ", " & q2.x & ", " & q2.y & ", " & q2.z
' Expected results:
'INFO :  The conjugate of q1 is 1, -1, -2, -3

2. JScript Example

var q1, q2
// Create Quaternions.
q1 = XSIMath.CreateQuaternion(1.0, 1.0, 2.0, 3.0);
q2 = XSIMath.CreateQuaternion();
q2.Conjugate( q1 );
Application.LogMessage (" The conjugate of q1 is " + q2.w + ", " + q2.x + ", " + q2.y + ", " + q2.z)
// Expected results:
//INFO :  The conjugate of q1 is 1, -1, -2, -3

See Also

SIQuaternion.ConjugateInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion