Vector2 Properties |
The Vector2 type exposes the following members.
Name | Description | |
---|---|---|
Down |
Down unit vector. Y is down in 2D, so this vector points +Y.
| |
Inf |
Infinity vector, a vector with all components set to `Mathf.Inf`.
| |
Item |
Access vector components using their index.
| |
Left |
Left unit vector. Represents the direction of left.
| |
NegOne |
Deprecated, please use a negative sign with One instead.
| |
One |
One vector, a vector with all components set to `1`.
| |
Right |
Right unit vector. Represents the direction of right.
| |
Up |
Up unit vector. Y is down in 2D, so this vector points -Y.
| |
Zero |
Zero vector, a vector with all components set to `0`.
|