|
olp-cpp-sdk
1.23.1
|
Represents 3D vectors and points. More...
#include <Vector.h>
Public Member Functions | |
| Vector3 (T a, T b, T c) | |
Creates a Vector3 instance with the given X, Y, and Z components. More... | |
| Vector3 (T const &s) | |
Creates a Vector3 instance. More... | |
| Vector3< T > | operator* (T const &s) const |
| Multiplies each vector component by a number. More... | |
| Vector3< T > | operator- () const |
| Negates the vector. | |
| Vector3< T > | operator- (Vector3< T > const &v) const |
| Subtracts one vector from another. More... | |
| Vector3< T > | operator+ (Vector3< T > const &v) const |
| Adds corresponding components of two vectors. More... | |
| Vector3< bool > | LessThan (Vector3< T > const &v) const |
| Checks whether the parameters of one vector are less than the parameters of the other vector. More... | |
Public Attributes | |
| T | x |
The X component of the vector. | |
| T | y |
The Y component of the vector. | |
| T | z |
The Z component of the vector. | |
Represents 3D vectors and points.
|
inline |
Creates a Vector3 instance with the given X, Y, and Z components.
| a | The X component of the vector. |
| b | The Y component of the vector. |
| c | The Z component of the vector. |
|
inlineexplicit |
Creates a Vector3 instance.
| s | The constant to initialize the vector components. |
|
inline |
Checks whether the parameters of one vector are less than the parameters of the other vector.
| v | The vector to compare to. |
|
inline |
Multiplies each vector component by a number.
| s | The number to multiply by. |
|
inline |
Adds corresponding components of two vectors.
| v | The vector to add. |
|
inline |
Subtracts one vector from another.
| v | The vector to substruct from. |