quickplot
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Vec3< T > Class Template Reference
Collaboration diagram for Vec3< T >:

Public Member Functions

 Vec3 (T value)
 
 Vec3 (T xx, T yy, T zz)
 
void zero ()
 
void set (int index, T value)
 
void set (T newX, T newY, T newZ)
 
void add (int index, T delta)
 
void add (T dx, T dy, T dz)
 
bool operator== (const Vec3< T > &value) const
 
bool operator!= (const Vec3< T > &value) const
 
bool operator== (const T &value) const
 
bool operator!= (const T &value) const
 
void operator= (const T value)
 
void operator+= (const T value)
 
void operator+= (const Vec3< T > &v)
 
Vec3< T > operator+ (const T value) const
 
Vec3< T > operator+ (const Vec3< T > &v) const
 
Vec3< T > operator- () const
 
void operator-= (const T value)
 
void operator-= (const Vec3< T > &v)
 
Vec3< T > operator- (const T value) const
 
Vec3< T > operator- (const Vec3< T > &v) const
 
void operator/= (const T value)
 
void operator/= (const Vec3< T > &v)
 
Vec3< T > operator/ (const T value) const
 
Vec3< T > operator/ (const Vec3< T > &v) const
 
Vec3< T > operator* (const T value) const
 
void operator*= (const T value)
 
Vec3< T > operator* (const Vec3< T > &v) const
 
Vec3< T > abs () const
 
absMax () const
 
int absMaxElement () const
 
absMin () const
 
int absMinElement () const
 
double dp (const Vec3< T > &v) const
 
double magAndNormalise ()
 
double magSqAndNormalise ()
 
double magnitude () const
 
double magnitudeSq () const
 
max () const
 
int maxElement () const
 
min () const
 
int minElement () const
 
Vec3< T > adjusted (int element, double delta) const
 
void multiply (double facx, double facy, double facz)
 
void multiply (Vec3< double > v)
 
void normalise ()
 
Vec3< T > orthogonal () const
 
void orthogonalise (const Vec3< T > &reference)
 
void orthogonalise (const Vec3< T > &reference1, const Vec3< T > &reference2)
 
T * write (T *buffer)
 

Static Public Member Functions

static Vec3< T > unit (int index)
 

Public Attributes

x
 
y
 
z
 

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