Vector3.LengthSquared Vector3.LengthSquared Vector3.LengthSquared Vector3.LengthSquared Method

定義

ベクトルの長さの 2 乗を返します。Returns the length of the vector squared.

public:
 float LengthSquared();
public float LengthSquared ();
member this.LengthSquared : unit -> single
Public Function LengthSquared () As Single

戻り値

ベクトルの長さの 2 乗。The vector's length squared.

注釈

この操作では、メソッドのLength呼び出しよりもパフォーマンスが向上します。This operation offers better performance than a call to the Length method.

適用対象

こちらもご覧ください