Defines a two-dimensional vector.
More...
|
| | Vector2 (float x, float y) |
| | Constructs and initializes a two-dimensional vector from the specified xy-coordinates. More...
|
| |
| override string | ToString () |
| | Returns the string representation of this vector. More...
|
| |
| float | x () |
| | Returns the x-coordinate of this two-dimensional vector. More...
|
| |
| float | y () |
| | Returns the y-coordinate of this two-dimensional vector. More...
|
| |
Defines a two-dimensional vector.
◆ Vector2()
| RVO.Vector2.Vector2 |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Constructs and initializes a two-dimensional vector from the specified xy-coordinates.
- Parameters
-
| x | The x-coordinate of the two-dimensional vector. |
| y | The y-coordinate of the two-dimensional vector. |
◆ operator*() [1/3]
Computes the scalar multiplication of the specified two-dimensional vector with the specified scalar value.
- Returns
- The scalar multiplication of the specified two-dimensional vector with the specified scalar value.
- Parameters
-
| scalar | The scalar value. |
| vector | The two-dimensional vector. |
◆ operator*() [2/3]
Computes the scalar multiplication of the specified two-dimensional vector with the specified scalar value.
- Returns
- The scalar multiplication of the specified two-dimensional vector with the specified scalar value.
- Parameters
-
| vector | The two-dimensional vector. |
| scalar | The scalar value. |
◆ operator*() [3/3]
| static float RVO.Vector2.operator* |
( |
Vector2 |
vector1, |
|
|
Vector2 |
vector2 |
|
) |
| |
|
inlinestatic |
Computes the dot product of the two specified two-dimensional vectors.
- Returns
- The dot product of the two specified two-dimensional vectors.
- Parameters
-
| vector1 | The first two-dimensional vector. |
| vector2 | The second two-dimensional vector. |
◆ operator+()
Computes the vector sum of the two specified two-dimensional vectors.
- Returns
- The vector sum of the two specified two-dimensional vectors.
- Parameters
-
| vector1 | The first two-dimensional vector. |
| vector2 | The second two-dimensional vector. |
◆ operator-() [1/2]
Computes the negation of the specified two-dimensional vector.
- Returns
- The negation of the specified two-dimensional vector.
- Parameters
-
| vector | The two-dimensional vector. |
◆ operator-() [2/2]
Computes the vector difference of the two specified two-dimensional vectors
- Returns
- The vector difference of the two specified two-dimensional vectors.
- Parameters
-
| vector1 | The first two-dimensional vector. |
| vector2 | The second two-dimensional vector. |
◆ operator/()
Computes the scalar division of the specified two-dimensional vector with the specified scalar value.
- Returns
- The scalar division of the specified two-dimensional vector with the specified scalar value.
- Parameters
-
| vector | The two-dimensional vector. |
| scalar | The scalar value. |
◆ ToString()
| override string RVO.Vector2.ToString |
( |
| ) |
|
|
inline |
Returns the string representation of this vector.
- Returns
- The string representation of this vector.
◆ x()
Returns the x-coordinate of this two-dimensional vector.
- Returns
- The x-coordinate of the two-dimensional vector.
◆ y()
Returns the y-coordinate of this two-dimensional vector.
- Returns
- The y-coordinate of the two-dimensional vector.
The documentation for this struct was generated from the following file: