Vector3< Type >(3)

NAME
Vector3< Type > - Vector class for 3-value vectors used in 3D space. The internal variables are an array of 3 numbers.

SYNOPSIS

#include <Quaternion.h>

  Public Member Functions
Vector3 ()
Vector3 (const Vector3 &v)
Vector3 (const Type x, const Type y, const Type z)
template<typename T2 > Vector3 (const vector< T2 > &v)
Vector3 operator= (const Type d)
Vector3 operator= (const Vector3 &v)
template<typename T2 > Vector3 operator= (const vector< T2 > &v)
Vector3 operator- ()
Vector3 operator+= (const double d)
Vector3 operator+ (const double d)
Vector3 operator+= (const Vector3 &v)
Vector3 operator+ (const Vector3 &v)
Vector3 operator-= (const double d)
Vector3 operator- (const double d)
Vector3 operator-= (const Vector3 &v)
Vector3 operator- (const Vector3 &v)
Vector3 operator *= (const double d)
Vector3 operator * (const double d)
Vector3 operator *= (const Vector3 &v)
Vector3 operator * (const Vector3 &v)
Vector3 operator/= (const double d)
Vector3 operator/ (const double d)
Vector3 operator/= (const Vector3 &v)
Vector3 operator/ (const Vector3 &v)
bool operator== (const Vector3 &v)
bool operator== (const double d)
bool operator!= (const Vector3 &v)
bool operator> (const double d)
bool operator< (const double d)
bool operator> (const Vector3 &v)
bool operator< (const Vector3 &v)
bool operator>= (const Vector3 &v)
bool operator<= (const Vector3 &v)
Type operator[] (size_t i) const
Type & operator[] (size_t i)
template<typename T2 > operator Vector3< T2 > () const
vector< double > array ()
Type min ()
Type max ()
Vector3 min (const double d)
Vector3 max (const double d)
Vector3 min (const Vector3 &v)
Vector3 max (const Vector3 &v)
Vector3 abs ()
Vector3 floor (int places)
Vector3 round (int places)
Vector3 remainder (int divisor)
double length2 ()
double length ()
void length (double d)
double distance (const Vector3 &v)
double distance2 (const Vector3 &v)
Vector3 square_root ()
double sum ()
double volume ()
double normalize ()
double scalar (const Vector3 &v) const
Vector3 cross (const Vector3 &v)
template<typename T2 > double angle (Vector3< T2 > &v)
Vector3 normal (Vector3 &v1, Vector3 &v2)
bool notfinite ()
bool within (Vector3 &v1, Vector3 &v2)

Detailed Description

  template<typename Type>
class Vector3< Type >" Vector class for 3-value vectors used in 3D space. The internal variables are an array of 3 numbers.

Definition at line 16 of file Quaternion.h.

Constructor & Destructor Documentation

  template<typename Type> Vector3< Type >::Vector3 () [inline]

Definition at line 31 of file Vector3.h.

  template<typename Type> Vector3< Type >::Vector3 (const Vector3< Type > & v) [inline]

Definition at line 32 of file Vector3.h.

  template<typename Type> Vector3< Type >::Vector3 (const Type x, const Type y, const Type z) [inline]

Definition at line 33 of file Vector3.h.

  template<typename Type> template<typename T2 > Vector3< Type >::Vector3 (const vector< T2 > & v) [inline]

Definition at line 35 of file Vector3.h.

Member Function Documentation

  template<typename Type> Vector3 Vector3< Type >::abs () [inline]

Definition at line 201 of file Vector3.h.

  template<typename Type> template<typename T2 > double Vector3< Type >::angle (Vector3< T2 > & v) [inline]

Definition at line 257 of file Vector3.h.

  template<typename Type> vector<double> Vector3< Type >::array () [inline]

Definition at line 166 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::cross (const Vector3< Type > & v) [inline]

Definition at line 250 of file Vector3.h.

  template<typename Type> double Vector3< Type >::distance (const Vector3< Type > & v) [inline]

Definition at line 227 of file Vector3.h.

  template<typename Type> double Vector3< Type >::distance2 (const Vector3< Type > & v) [inline]

Definition at line 228 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::floor (int places) [inline]

Definition at line 206 of file Vector3.h.

  template<typename Type> double Vector3< Type >::length () [inline]

Definition at line 222 of file Vector3.h.

  template<typename Type> void Vector3< Type >::length (double d) [inline]

Definition at line 223 of file Vector3.h.

  template<typename Type> double Vector3< Type >::length2 () [inline]

Definition at line 221 of file Vector3.h.

  template<typename Type> Type Vector3< Type >::max () [inline]

Definition at line 175 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::max (const double d) [inline]

Definition at line 186 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::max (const Vector3< Type > & v) [inline]

Definition at line 196 of file Vector3.h.

  template<typename Type> Type Vector3< Type >::min () [inline]

Definition at line 169 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::min (const double d) [inline]

Definition at line 181 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::min (const Vector3< Type > & v) [inline]

Definition at line 191 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::normal (Vector3< Type > & v1, Vector3< Type > & v2) [inline]

Definition at line 267 of file Vector3.h.

  template<typename Type> double Vector3< Type >::normalize () [inline]

Definition at line 236 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::notfinite () [inline]

Definition at line 274 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator * (const double d) [inline]

Definition at line 86 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator * (const Vector3< Type > & v) [inline]

Definition at line 94 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator *= (const double d) [inline]

Definition at line 82 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator *= (const Vector3< Type > & v) [inline]

Definition at line 90 of file Vector3.h.

  template<typename Type> template<typename T2 > Vector3< Type >::operator Vector3< T2 > () const [inline]

Definition at line 163 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator!= (const Vector3< Type > & v) [inline]

Definition at line 126 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator+ (const double d) [inline]

Definition at line 54 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator+ (const Vector3< Type > & v) [inline]

Definition at line 62 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator+= (const double d) [inline]

Definition at line 50 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator+= (const Vector3< Type > & v) [inline]

Definition at line 58 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator- () [inline]

Definition at line 46 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator- (const double d) [inline]

Definition at line 70 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator- (const Vector3< Type > & v) [inline]

Definition at line 78 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator-= (const double d) [inline]

Definition at line 66 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator-= (const Vector3< Type > & v) [inline]

Definition at line 74 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator/ (const double d) [inline]

Definition at line 104 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator/ (const Vector3< Type > & v) [inline]

Definition at line 112 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator/= (const double d) [inline]

Definition at line 98 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator/= (const Vector3< Type > & v) [inline]

Definition at line 108 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator< (const double d) [inline]

Definition at line 136 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator< (const Vector3< Type > & v) [inline]

Definition at line 146 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator<= (const Vector3< Type > & v) [inline]

Definition at line 156 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator= (const Type d) [inline]

Definition at line 36 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::operator= (const Vector3< Type > & v) [inline]

Definition at line 37 of file Vector3.h.

  template<typename Type> template<typename T2 > Vector3 Vector3< Type >::operator= (const vector< T2 > & v) [inline]

Definition at line 42 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator== (const Vector3< Type > & v) [inline]

Definition at line 116 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator== (const double d) [inline]

Definition at line 121 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator> (const double d) [inline]

Definition at line 131 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator> (const Vector3< Type > & v) [inline]

Definition at line 141 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::operator>= (const Vector3< Type > & v) [inline]

Definition at line 151 of file Vector3.h.

  template<typename Type> Type Vector3< Type >::operator[] (size_t i) const [inline]

Definition at line 161 of file Vector3.h.

  template<typename Type> Type& Vector3< Type >::operator[] (size_t i) [inline]

Definition at line 162 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::remainder (int divisor) [inline]

Definition at line 216 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::round (int places) [inline]

Definition at line 211 of file Vector3.h.

  template<typename Type> double Vector3< Type >::scalar (const Vector3< Type > & v) const [inline]

Definition at line 247 of file Vector3.h.

  template<typename Type> Vector3 Vector3< Type >::square_root () [inline]

Definition at line 229 of file Vector3.h.

  template<typename Type> double Vector3< Type >::sum () [inline]

Definition at line 234 of file Vector3.h.

  template<typename Type> double Vector3< Type >::volume () [inline]

Definition at line 235 of file Vector3.h.

  template<typename Type> bool Vector3< Type >::within (Vector3< Type > & v1, Vector3< Type > & v2) [inline]

Definition at line 279 of file Vector3.h.

Author

Generated automatically by Doxygen for Bsoft from the source code.