Public Member Functions | |
Vector2 (float x, float y) | |
Constructor. | |
Static Public Member Functions | |
static Vector2 | Add (Vector2 left, Vector2 right) |
Used when a Vector2 is added to another Vector2. | |
static Vector2 | operator+ (Vector2 left, Vector2 right) |
Used when a Vector2 is added to another Vector2. | |
static Vector2 | Subtract (Vector2 left, Vector2 right) |
Used to subtract a Vector2 from another Vector2. | |
static Vector2 | operator- (Vector2 left, Vector2 right) |
Used to subtract a Vector2 from another Vector2. | |
static Vector2 | Multiply (Vector2 left, float scalar) |
Used when a Vector2 is multiplied by a scalar value. | |
static Vector2 | operator * (Vector2 left, float scalar) |
Used when a Vector2 is multiplied by a scalar value. | |
static Vector2 | Multiply (float scalar, Vector2 right) |
Used when a scalar value is multiplied by a Vector2. | |
static Vector2 | operator * (float scalar, Vector2 right) |
Used when a scalar value is multiplied by a Vector2. | |
static Vector2 | Negate (Vector2 left) |
Used to negate the elements of a vector. | |
static Vector2 | operator- (Vector2 left) |
Used to negate the elements of a vector. |
|
Constructor.
|
|
Used when a Vector2 is added to another Vector2.
|
|
Used when a scalar value is multiplied by a Vector2.
|
|
Used when a Vector2 is multiplied by a scalar value.
|
|
Used to negate the elements of a vector.
|
|
Used when a scalar value is multiplied by a Vector2.
|
|
Used when a Vector2 is multiplied by a scalar value.
|
|
Used when a Vector2 is added to another Vector2.
|
|
Used to negate the elements of a vector.
|
|
Used to subtract a Vector2 from another Vector2.
|
|
Used to subtract a Vector2 from another Vector2.
|