Vector3.LengthSquared 方法

定義

傳回向量長度平方。

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

傳回

Single

向量長度平方。

備註

這項作業提供比呼叫 Length 方法更好的效能。

適用於

另請參閱