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