Vector3.LengthSquared Método

Definición

Devuelve la longitud al cuadrado del vector.

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

Devoluciones

Single

Longitud del vector al cuadrado.

Comentarios

Esta operación ofrece un mejor rendimiento que una llamada al Length método .

Se aplica a

Consulte también