SIQuaternion.Add

説明

クォータニオンq1にクォータニオンq2を加え、結果をこのクォータニオンに格納します。

スクリプト 構文

SIQuaternion.Add( q1, q2 );

パラメータ

パラメータ タイプ 詳細
q1 SIQuaternion クォータニオンオペランド
q2 SIQuaternion クォータニオンオペランド

VBScript の例

dim q1, q2, q3
' Create Quaternions.
set q1 = XSIMath.CreateQuaternion(1.0, 1.0, 2.0, 3.0)
set q2 = XSIMath.CreateQuaternion(1.0, 4.0, 5.0, 6.0)
set q3 = XSIMath.CreateQuaternion
'q3 = q1 + q2
q3.Add q1, q2

関連項目

SIQuaternion.AddInPlace SIQuaternion.Sub SIQuaternion.SubInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion