A 3D float vector.
Definition at line 107 of file Vector.hh.
|
| constexpr | Vector3f (f32 x_, f32 y_, f32 z_) |
| constexpr void | setZero () |
| constexpr void | set (f32 val) |
| constexpr Vector3f | operator- () const |
| constexpr Vector3f | operator- (const Vector3f &rhs) const |
| constexpr Vector3f & | operator-= (const Vector3f &rhs) |
| constexpr Vector3f | operator+ (const Vector3f &rhs) const |
| constexpr Vector3f & | operator+= (const Vector3f &rhs) |
| constexpr Vector3f | operator+ (f32 val) const |
| constexpr Vector3f & | operator+= (f32 val) |
| constexpr Vector3f | operator* (const Vector3f &rhs) const |
| constexpr Vector3f | operator* (f32 scalar) const |
| constexpr Vector3f & | operator*= (f32 scalar) |
| constexpr Vector3f | operator/ (f32 scalar) const |
| constexpr Vector3f & | operator/= (f32 scalar) |
| constexpr bool | operator== (const Vector3f &rhs) const |
| constexpr bool | operator!= (const Vector3f &rhs) const |
| | operator std::string () const |
| | Allows for copy construction from a vector to a string.
|
| constexpr Vector3f | cross (const Vector3f &rhs) const |
| constexpr f32 | squaredLength () const |
| | The dot product between the vector and itself.
|
| constexpr f32 | dot (const Vector3f &rhs) const |
| | The dot product between two vectors.
|
| constexpr f32 | length () const |
| | The square root of the vector's dot product.
|
| constexpr f32 | ps_length () const |
| constexpr Vector3f | proj (const Vector3f &rhs) const |
| | The projection of this vector onto rhs.
|
| constexpr Vector3f | rej (const Vector3f &rhs) const |
| | The rejection of this vector onto rhs.
|
| constexpr std::pair< Vector3f, Vector3f > | projAndRej (const Vector3f &rhs) const |
| constexpr Vector3f | abs () const |
| | Returns the absolute value of each element of the vector.
|
| constexpr f32 | sqDistance (const Vector3f &rhs) const |
| | The square of the distance between two vectors.
|
| constexpr EGG::Vector3f | multInv (f32 val) const |
| | Multiplies a vector by the inverse of val.
|
| constexpr f32 | ps_dot () const |
| | Paired-singles dot product implementation.
|
| constexpr f32 | ps_dot (const Vector3f &rhs) const |
| | Paired-singles dot product implementation.
|
| constexpr f32 | ps_squareMag () const |
| | Differs from ps_dot due to variation in which operands are fused.
|
| constexpr f32 | normalise () |
| | Normalizes the vector and returns the original length.
|
| constexpr EGG::Vector3f | ps_normalize () const |
| constexpr std::pair< f32, EGG::Vector3f > | ps_normalized () |
| constexpr void | normalise2 () |
| constexpr Vector3f | maximize (const Vector3f &rhs) const |
| | Returns a vector whose elements are the max of the elements of both vectors.
|
| constexpr Vector3f | minimize (const Vector3f &rhs) const |
| | Returns a vector whose elements are the min of the elements of both vectors.
|
| constexpr f32 | ps_sqDistance (const Vector3f &rhs) const |
| | Paired-singles impl. of sqDistance.
|
| constexpr Vector3f | perpInPlane (const EGG::Vector3f &rhs, bool normalise) const |
| | Calculates the orthogonal vector, based on the plane defined by this vector and rhs.
|
| void | read (Stream &stream) |
| | Initializes a Vector3f by reading 12 bytes from the stream.
|
|
| static const Vector3f | zero = Vector3f(0.0f, 0.0f, 0.0f) |
| static const Vector3f | unit = Vector3f(1.0f, 1.0f, 1.0f) |
| static const Vector3f | ex = Vector3f(1.0f, 0.0f, 0.0f) |
| static const Vector3f | ey = Vector3f(0.0f, 1.0f, 0.0f) |
| static const Vector3f | ez = Vector3f(0.0f, 0.0f, 1.0f) |
| static const Vector3f | inf |