SIQuaternion.LengthSquared

説明

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

C#構文

Double SIQuaternion.LengthSquared();

スクリプト構文

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