A three-coordinate vector. More...
Public Member Functions | |
| Vector3D () noexcept | |
| Vector3D (const Type &xValue, const Type &yValue, const Type &zValue) noexcept | |
| Vector3D (const Vector3D &other) noexcept | |
| Vector3D & | operator= (const Vector3D &other) noexcept |
| Vector3D & | operator+= (const Vector3D &other) noexcept |
| Vector3D & | operator-= (const Vector3D &other) noexcept |
| Vector3D & | operator*= (const Type &scaleFactor) noexcept |
| Vector3D & | operator/= (const Type &scaleFactor) noexcept |
| Vector3D | operator+ (const Vector3D &other) const noexcept |
| Vector3D | operator- (const Vector3D &other) const noexcept |
| Vector3D | operator* (const Type &scaleFactor) const noexcept |
| Vector3D | operator/ (const Type &scaleFactor) const noexcept |
| Vector3D | operator- () const noexcept |
| Type | operator* (const Vector3D &other) const noexcept |
| Returns the dot-product of these two vectors. | |
| Vector3D | operator^ (const Vector3D &other) const noexcept |
| Returns the cross-product of these two vectors. | |
| Type | length () const noexcept |
| Type | lengthSquared () const noexcept |
| Vector3D | normalised () const noexcept |
| bool | lengthIsBelowEpsilon () const noexcept |
| Returns true if the vector is practically equal to the origin. | |
Static Public Member Functions | |
| static Vector3D | xAxis () noexcept |
| Returns a vector that lies along the X axis. | |
| static Vector3D | yAxis () noexcept |
| Returns a vector that lies along the Y axis. | |
| static Vector3D | zAxis () noexcept |
| Returns a vector that lies along the Z axis. | |
Public Attributes | |
| Type | x |
| Type | y |
| Type | z |
A three-coordinate vector.
|
noexcept |
|
noexcept |
Returns a vector that lies along the X axis.
Returns a vector that lies along the Y axis.
Returns a vector that lies along the Z axis.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Returns the dot-product of these two vectors.
|
noexcept |
Returns the cross-product of these two vectors.
|
noexcept |
Referenced by Vector3D< GLfloat >::normalised().
|
noexcept |
Referenced by Vector3D< GLfloat >::length().
|
noexcept |
Returns true if the vector is practically equal to the origin.
| Type Vector3D< Type >::x |
Referenced by Vector3D< GLfloat >::lengthIsBelowEpsilon(), Vector3D< GLfloat >::lengthSquared(), Vector3D< GLfloat >::operator*(), Vector3D< GLfloat >::operator*=(), Vector3D< GLfloat >::operator+(), Vector3D< GLfloat >::operator+=(), Vector3D< GLfloat >::operator-(), Vector3D< GLfloat >::operator-=(), Vector3D< GLfloat >::operator/(), Vector3D< GLfloat >::operator/=(), Vector3D< GLfloat >::operator=(), and Vector3D< GLfloat >::operator^().
| Type Vector3D< Type >::y |
Referenced by Vector3D< GLfloat >::lengthIsBelowEpsilon(), Vector3D< GLfloat >::lengthSquared(), Vector3D< GLfloat >::operator*(), Vector3D< GLfloat >::operator*=(), Vector3D< GLfloat >::operator+(), Vector3D< GLfloat >::operator+=(), Vector3D< GLfloat >::operator-(), Vector3D< GLfloat >::operator-=(), Vector3D< GLfloat >::operator/(), Vector3D< GLfloat >::operator/=(), Vector3D< GLfloat >::operator=(), and Vector3D< GLfloat >::operator^().
| Type Vector3D< Type >::z |
Referenced by Vector3D< GLfloat >::lengthIsBelowEpsilon(), Vector3D< GLfloat >::lengthSquared(), Vector3D< GLfloat >::operator*(), Vector3D< GLfloat >::operator*=(), Vector3D< GLfloat >::operator+(), Vector3D< GLfloat >::operator+=(), Vector3D< GLfloat >::operator-(), Vector3D< GLfloat >::operator-=(), Vector3D< GLfloat >::operator/(), Vector3D< GLfloat >::operator/=(), Vector3D< GLfloat >::operator=(), and Vector3D< GLfloat >::operator^().