HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vector4d Class Reference

#include <Types.h>

+ Inheritance diagram for Vector4d:

Public Member Functions

 Vector4d ()=default
 
 Vector4d (double x, double y, double z, double w)
 
- Public Member Functions inherited from VectorN< Vector4d, double, 4 >
 VectorN ()
 
 VectorN (Uninit)
 
 VectorN (doubles)
 
 VectorN (const std::array< double, N > &arr)
 
 VectorN (const vector< double > &vec)
 
 VectorN (const double *begin, const double *end)
 
bool operator== (const Vector4d &rhs) const
 Return true if the given vector is identical to this one. More...
 
bool operator!= (const Vector4d &rhs) const
 Return true if the given vector differs from this one. More...
 
bool operator< (const Vector4d &rhs) const
 Compare two vectors lexicographically. More...
 
double & operator[] (size_t i)
 Return the scalar value at the given index. More...
 
const double & operator[] (size_t i) const
 Return the const scalar value at the given index. More...
 
Vector4d operator+ (const Vector4d &rhs) const
 Component-wise addition of two vectors. More...
 
VectorNoperator+= (const Vector4d &rhs)
 Component-wise addition of two vectors. More...
 
Vector4d operator- (const Vector4d &rhs) const
 Component-wise subtraction of two vectors. More...
 
Vector4d operator- () const
 Unary negation of a vector. More...
 
VectorNoperator-= (const Vector4d &rhs)
 Component-wise subtraction of two vectors. More...
 
Vector4d operator* (const Vector4d &rhs) const
 Component-wise multiplication of two vectors. More...
 
Vector4d operator* (doubles) const
 Component-wise multiplication of a vector by a scalar. More...
 
VectorNoperator*= (const Vector4d &rhs)
 Component-wise multiplication of two vectors. More...
 
VectorNoperator*= (doubles)
 Component-wise multiplication of a vector by a scalar. More...
 
Vector4d operator/ (const Vector4d &rhs) const
 Component-wise division of two vectors. More...
 
Vector4d operator/ (doubles) const
 Component-wise division of a vector by a scalar. More...
 
VectorNoperator/= (const Vector4d &rhs)
 Component-wise division of two vectors. More...
 
VectorNoperator/= (doubles)
 Component-wise division of a vector by a scalar. More...
 
double getMagnitude () const
 Return the magnitude of the vector. More...
 
Vector4d getNormalized () const
 Return a normalized vector. More...
 
double dot (const Vector4d &rhs) const
 Return the dot product of two vectors. More...
 
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
double * data ()
 Return a pointer to the underlying data array. More...
 
const double * data () const
 Return a const pointer to the underlying data array. More...
 

Additional Inherited Members

- Public Types inherited from VectorN< Vector4d, double, 4 >
using Iterator = typename std::array< double, N >::iterator
 
using ConstIterator = typename std::array< double, N >::const_iterator
 
- Static Public Member Functions inherited from VectorN< Vector4d, double, 4 >
static constexpr size_t numElements ()
 Return the number of scalar elements for the vector. More...
 
- Protected Attributes inherited from VectorN< Vector4d, double, 4 >
std::array< double, N > _arr
 

Detailed Description

A vector of four floating-point values (double-precision)

Definition at line 74 of file Types.h.

Constructor & Destructor Documentation

Vector4d::Vector4d ( )
default
Vector4d::Vector4d ( double  x,
double  y,
double  z,
double  w 
)
inline

Definition at line 79 of file Types.h.


The documentation for this class was generated from the following file: