SIQuaternion.Negate

説明

クォータニオンqの符号を反転し、結果をこのクォータニオンに格納します。

スクリプト 構文

SIQuaternion.Negate( q );

パラメータ

パラメータ タイプ 詳細
Q SIQuaternion 符号を反転するクォータニオン

VBScript の例

dim q1, q2
' Create Quaternions.
set q1 = XSIMath.CreateQuaternion(1.0, 1.0, 2.0, 3.0)
set q2 = XSIMath.CreateQuaternion
'q2 = -q1
q2.Negate q1

関連項目

SIQuaternion.NegateInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion