SIQuaternion.Conjugate

説明

クォータニオン q の共役を求め、結果をこのクォータニオンに格納します。

C#構文

SIQuaternion.Conjugate( SIQuaternion in_pQuat );

スクリプト構文

SIQuaternion.Conjugate( q );

パラメータ

パラメータ タイプ 説明
q SIQuaternion 共役を求めるクォータニオン

1. VBScript の例

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 の例

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

関連項目

SIQuaternion.ConjugateInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion