SIQuaternion.LengthSquared

説明

このクォータニオンの 2乗長を計算します。

スクリプト 構文

oFloat = SIQuaternion.LengthSquared();

戻り値

Float(このクォータニオンの 2乗長)

VBScript の例

dim q1
' Create Quaternion.
set q1 = XSIMath.CreateQuaternion(1.0, 1.0, 2.0, 3.0)
SquaredLengthOfQ1 = q1.LengthSquared

関連項目

SIQuaternion.Length SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion