Vector2.LengthSquared Metoda

Definicja

Zwraca długość wektora kwadratu.

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

Zwraca

Długość wektora jest kwadratowa.

Uwagi

Ta operacja zapewnia lepszą wydajność niż wywołanie Length metody .

Dotyczy

Zobacz też