Vector3.LengthSquared 方法

定义

返回向量长度平方值。

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

返回

向量长度平方值。

注解

与调用 Length 方法相比,此操作可提供更好的性能。

适用于

另请参阅