Vector2.LengthSquared Metoda

Definice

Vrátí délku vektoru na druhou.

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

Návraty

Délka vektoru je na druhou mocninu.

Poznámky

Tato operace nabízí lepší výkon než volání Length metody.

Platí pro

Viz také