Свойство | Тип | Описание | |
---|---|---|---|
X | float |
Метод | Описание | |
---|---|---|
Cross ( |
Perform the cross product on a vector and a scalar. In 2D this produces a vector.
|
|
Cross ( float s, |
Perform the cross product on a scalar and a vector. In 2D this produces a vector.
|
|
Cross ( |
Perform the cross product on two vectors. In 2D this produces a scalar.
|
|
Distance ( |
||
DistanceSquared ( |
||
Dot ( |
Peform the dot product on two vectors.
|
|
Length ( ) : float |
Get the length of this vector (the norm).
|
|
LengthSquared ( ) : float |
Get the length squared. For performance, use this instead of Length (if possible).
|
|
Normalize ( ) : float |
Convert this vector into a unit vector. Returns the length.
|
|
Set ( float x, float y ) : void |
Set this vector to some specified coordinates.
|
|
SetZero ( ) : void |
Set this vector to all zeros.
|
|
Vec2 ( float x, float y ) : System |
Construct using coordinates.
|
|
operator ( ) : |
||
operator ( ) : bool |
public static Cross ( |
||
a | ||
s | float | |
Результат |
public static Cross ( float s, |
||
s | float | |
a | ||
Результат |
public static Cross ( |
||
a | ||
b | ||
Результат | float |
public static Distance ( |
||
a | ||
b | ||
Результат | float |
public static DistanceSquared ( |
||
a | ||
b | ||
Результат | float |
public static Dot ( |
||
a | ||
b | ||
Результат | float |