Defines a three-dimensional vector. More...
#include <Vector3.h>
Public Member Functions | |
RVO_API | Vector3 () |
Constructs and initializes a three-dimensional vector instance to zero. | |
RVO_API | Vector3 (const Vector3 &vector) |
Constructs and initializes a three-dimensional vector from the specified three-dimensional vector. | |
RVO_API | Vector3 (float vx, float vy, float vz) |
Constructs and initializes a three-dimensional vector from the specified xyz-coordinates. | |
RVO_API | Vector3 (const float val[3]) |
Constructs and initializes a three-dimensional vector from the specified three-element array. | |
RVO_API bool | operator!= (const Vector3 &vector) const |
Tests this three-dimensional vector for inequality with the specified three-dimensional vector. | |
RVO_API float | operator* (const Vector3 &vector) const |
Computes the dot product of this three-dimensional vector with the specified three-dimensional vector. | |
RVO_API Vector3 | operator* (float scalar) const |
Computes the scalar multiplication of this three-dimensional vector with the specified scalar value. | |
RVO_API Vector3 & | operator*= (float scalar) |
Sets the value of this three-dimensional vector to the scalar multiplication of itself with the specified scalar value. | |
RVO_API Vector3 | operator+ (const Vector3 &vector) const |
Computes the vector sum of this three-dimensional vector with the specified three-dimensional vector. | |
RVO_API Vector3 & | operator+= (const Vector3 &vector) |
Sets the value of this three-dimensional vector to the vector sum of itself with the specified three-dimensional vector. | |
RVO_API Vector3 | operator- () const |
Computes the negation of this three-dimensional vector. | |
RVO_API Vector3 | operator- (const Vector3 &vector) const |
Computes the vector difference of this three-dimensional vector with the specified three-dimensional vector. | |
RVO_API Vector3 & | operator-= (const Vector3 &vector) |
Sets the value of this three-dimensional vector to the vector difference of itself with the specified three-dimensional vector. | |
RVO_API Vector3 | operator/ (float scalar) const |
Computes the scalar division of this three-dimensional vector with the specified scalar value. | |
RVO_API Vector3 & | operator/= (float scalar) |
Sets the value of this three-dimensional vector to the scalar division of itself with the specified scalar value. | |
RVO_API bool | operator== (const Vector3 &vector) const |
Tests this three-dimensional vector for equality with the specified three-dimensional vector. | |
RVO_API float & | operator[] (size_t i) |
Returns a reference to the specified coordinate of this three-dimensional vector. | |
RVO_API float | operator[] (size_t i) const |
Returns the specified coordinate of this three-dimensional vector. | |
RVO_API float | x () const |
Returns the x-coordinate of this three-dimensional vector. | |
RVO_API float | y () const |
Returns the y-coordinate of this three-dimensional vector. | |
RVO_API float | z () const |
Returns the z-coordinate of this three-dimensional vector. |
Defines a three-dimensional vector.
RVO_API RVO::Vector3::Vector3 | ( | ) | [inline] |
Constructs and initializes a three-dimensional vector instance to zero.
RVO_API RVO::Vector3::Vector3 | ( | const Vector3 & | vector | ) | [inline] |
Constructs and initializes a three-dimensional vector from the specified three-dimensional vector.
vector | The three-dimensional vector containing the xyz-coordinates. |
RVO_API RVO::Vector3::Vector3 | ( | const float | val[3] | ) | [inline, explicit] |
Constructs and initializes a three-dimensional vector from the specified three-element array.
val | The three-element array containing the xyz-coordinates. |
RVO_API RVO::Vector3::Vector3 | ( | float | vx, |
float | vy, | ||
float | vz | ||
) | [inline] |
Constructs and initializes a three-dimensional vector from the specified xyz-coordinates.
vx | The x-coordinate of the three-dimensional vector. |
vy | The y-coordinate of the three-dimensional vector. |
vz | The z-coordinate of the three-dimensional vector. |
RVO_API bool RVO::Vector3::operator!= | ( | const Vector3 & | vector | ) | const [inline] |
Tests this three-dimensional vector for inequality with the specified three-dimensional vector.
vector | The three-dimensional vector with which to test for inequality. |
RVO_API Vector3 RVO::Vector3::operator* | ( | float | scalar | ) | const [inline] |
Computes the scalar multiplication of this three-dimensional vector with the specified scalar value.
scalar | The scalar value with which the scalar multiplication should be computed. |
RVO_API float RVO::Vector3::operator* | ( | const Vector3 & | vector | ) | const [inline] |
Computes the dot product of this three-dimensional vector with the specified three-dimensional vector.
vector | The three-dimensional vector with which the dot product should be computed. |
RVO_API Vector3& RVO::Vector3::operator*= | ( | float | scalar | ) | [inline] |
Sets the value of this three-dimensional vector to the scalar multiplication of itself with the specified scalar value.
scalar | The scalar value with which the scalar multiplication should be computed. |
Computes the vector sum of this three-dimensional vector with the specified three-dimensional vector.
vector | The three-dimensional vector with which the vector sum should be computed. |
Sets the value of this three-dimensional vector to the vector sum of itself with the specified three-dimensional vector.
vector | The three-dimensional vector with which the vector sum should be computed. |
Computes the vector difference of this three-dimensional vector with the specified three-dimensional vector.
vector | The three-dimensional vector with which the vector difference should be computed. |
RVO_API Vector3 RVO::Vector3::operator- | ( | ) | const [inline] |
Computes the negation of this three-dimensional vector.
Sets the value of this three-dimensional vector to the vector difference of itself with the specified three-dimensional vector.
vector | The three-dimensional vector with which the vector difference should be computed. |
RVO_API Vector3 RVO::Vector3::operator/ | ( | float | scalar | ) | const [inline] |
Computes the scalar division of this three-dimensional vector with the specified scalar value.
scalar | The scalar value with which the scalar division should be computed. |
RVO_API Vector3& RVO::Vector3::operator/= | ( | float | scalar | ) | [inline] |
Sets the value of this three-dimensional vector to the scalar division of itself with the specified scalar value.
scalar | The scalar value with which the scalar division should be computed. |
RVO_API bool RVO::Vector3::operator== | ( | const Vector3 & | vector | ) | const [inline] |
Tests this three-dimensional vector for equality with the specified three-dimensional vector.
vector | The three-dimensional vector with which to test for equality. |
RVO_API float& RVO::Vector3::operator[] | ( | size_t | i | ) | [inline] |
Returns a reference to the specified coordinate of this three-dimensional vector.
i | The coordinate to which a reference should be returned (0 <= i < 3). |
RVO_API float RVO::Vector3::operator[] | ( | size_t | i | ) | const [inline] |
Returns the specified coordinate of this three-dimensional vector.
i | The coordinate that should be returned (0 <= i < 3). |
RVO_API float RVO::Vector3::x | ( | ) | const [inline] |
Returns the x-coordinate of this three-dimensional vector.
RVO_API float RVO::Vector3::y | ( | ) | const [inline] |
Returns the y-coordinate of this three-dimensional vector.
RVO_API float RVO::Vector3::z | ( | ) | const [inline] |
Returns the z-coordinate of this three-dimensional vector.