VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
DtVector64 Class Reference
+ Inheritance diagram for DtVector64:
+ Collaboration diagram for DtVector64:

Public Member Functions

 DtVector64 ()
 DtVector64 (const double &x, const double &y, const double &z)
 Construct from three doubles.
 ~DtVector64 ()
 destructor
 DtVector64 (const DtVector64 &vec)
 copy constructor
 DtVector64 (const DtVectorT< double > &vec)
DtVector64operator= (const DtVector64 &vec)
 assignment operator
DtVector64operator= (const DtVectorT< double > &vec)
 assignment operator
DtVector64 crossProduct (const DtVector64 &v) const
 Compute cross product with another vector.
DtVector64operator+= (const DtVector64 &other)
 adds other to this vector
DtVector64operator-= (const DtVector64 &other)
 subtracts other from this vector (this - other)
double dotProduct (const DtVector64 &v) const
 Compute dot product with another vector.
bool approxEq (const DtVector64 &v, const double &tolerance) const
 check if the vector is zero-ed out withing the tolerance passed
- Public Member Functions inherited from DtVectorT< double >
 DtVectorT ()
 DtVectorT (const double &x, const double &y, const double &z)
 Construct from three doubles.
 DtVectorT (const DtVectorT< double > &vec)
 copy constructor
 ~DtVectorT ()
 destructor
void setToZero ()
 set Vector to all zeros
doubleoperator[] (int ind)
 Get the value for the specified subscript. (int version)
double operator[] (int ind) const
 A const version to get the value for the specified subscript.
doubleoperator[] (DtVectorOffset ind)
 Get the value for the specified subscript. (enum version)
double operator[] (DtVectorOffset ind) const
 a const version to get the value for the specified subscript. (enum version)
int operator== (const DtVectorT< double > &vec) const
 Get whether another vector equals this vector.
int operator!= (const DtVectorT< double > &vec) const
 Get whether another vector does not equal this vector.
DtString string () const
 Get a string representation of the vector.
double magnitudeSquared () const
 Get the magnitude of the vector squared, i.e.
void normalize ()
 Normalize the vector; i.e., magnitude = 1.
bool isNormalized () const
 Returns true of the vector is Normalized.
bool magnitudeIsZero () const
 check if the magnitude of this vector is zero
bool magnitudeIsZero (double tolerance) const
 check if the magnitude of this vector is zero, within the tolerance passed.
std::ostream & printDataToStream (std::ostream &str) const
 prints out a formated string to the stream
const doublex () const
 gets/sets the x component of a Vector
void setX (const double &x)
 gets/sets the x component of a Vector
const doubley () const
 gets/sets the y component of a Vector
void setY (const double &y)
 gets/sets the y component of a Vector
const doublez () const
 gets/sets the z component of a Vector
void setZ (const double &z)
 gets/sets the z component of a Vector
 operator double * ()
 operator const double * () const

Static Public Member Functions

static const DtVector64zero ()
 Get a zeroed vector.
static const DtVector64i ()
 Get a (1,0,0) vector.
static const DtVector64j ()
 Get a (0,1,0) vector.
static const DtVector64k ()
 Get a (0,0,1) vector.
static const DtVector64ones ()
 Get a vector set to all ones.

Additional Inherited Members

- Protected Attributes inherited from DtVectorT< double >
double myRep [3]

Constructor & Destructor Documentation

DtVector64::DtVector64 ( )
inline
DtVector64::DtVector64 ( const double x,
const double y,
const double z 
)
inline

Construct from three doubles.

DtVector64::~DtVector64 ( )
inline

destructor

DtVector64::DtVector64 ( const DtVector64 vec)
inline

copy constructor

DtVector64::DtVector64 ( const DtVectorT< double > &  vec)
inline

Member Function Documentation

bool DtVector64::approxEq ( const DtVector64 v,
const double tolerance 
) const

check if the vector is zero-ed out withing the tolerance passed

DtVector64 DtVector64::crossProduct ( const DtVector64 v) const
inline

Compute cross product with another vector.

double DtVector64::dotProduct ( const DtVector64 v) const

Compute dot product with another vector.

static const DtVector64& DtVector64::i ( )
static

Get a (1,0,0) vector.

static const DtVector64& DtVector64::j ( )
static

Get a (0,1,0) vector.

static const DtVector64& DtVector64::k ( )
static

Get a (0,0,1) vector.

static const DtVector64& DtVector64::ones ( )
static

Get a vector set to all ones.

DtVector64& DtVector64::operator+= ( const DtVector64 other)

adds other to this vector

DtVector64& DtVector64::operator-= ( const DtVector64 other)

subtracts other from this vector (this - other)

DtVector64& DtVector64::operator= ( const DtVector64 vec)
inline

assignment operator

DtVector64& DtVector64::operator= ( const DtVectorT< double > &  vec)
inline

assignment operator

Reimplemented from DtVectorT< double >.

static const DtVector64& DtVector64::zero ( )
static

Get a zeroed vector.


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

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)