Conjugates the quaternion Q and stores the result in this quaternion.
SIQuaternion.Conjugate( SIQuaternion in_pQuat ); |
SIQuaternion.Conjugate( q ); |
Parameter | Type | Description |
---|---|---|
q | SIQuaternion | quaternion to conjugate |
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 |
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 |