クォータニオンqの共役を求め、結果をこのクォータニオンに格納します。
SIQuaternion.Conjugate( q ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| Q | SIQuaternion | 共役を求めるクォータニオン |
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
|