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
DtVector32 Class Reference
+ Inheritance diagram for DtVector32:
+ Collaboration diagram for DtVector32:

Public Member Functions

 DtVector32 ()
 DtVector32 (const float &x, const float &y, const float &z)
 Construct from three doubles.
 ~DtVector32 ()
 destructor
 DtVector32 (const DtVector32 &vec)
 copy constructor
 DtVector32 (const DtVectorT< float > &vec)
DtVector32operator= (const DtVector32 &vec)
 assignment operator
DtVector32operator= (const DtVectorT< float > &vec)
 assignment operator
DtVector32 crossProduct (const DtVector32 &v) const
 Compute cross product with another vector.
DtVector32operator+= (const DtVector32 &other)
 adds other to this vector
DtVector32operator-= (const DtVector32 &other)
 subtracts other from this vector (this - other)
float dotProduct (const DtVector32 &v) const
 Compute dot product with another vector.
bool approxEq (const DtVector32 &v, const double &tolerance) const
 check if the vector is zero-ed out withing the tolerance passed
- Public Member Functions inherited from DtVectorT< float >
 DtVectorT ()
 DtVectorT (const float &x, const float &y, const float &z)
 Construct from three doubles.
 DtVectorT (const DtVectorT< float > &vec)
 copy constructor
 ~DtVectorT ()
 destructor
void setToZero ()
 set Vector to all zeros
floatoperator[] (int ind)
 Get the value for the specified subscript. (int version)
float operator[] (int ind) const
 A const version to get the value for the specified subscript.
floatoperator[] (DtVectorOffset ind)
 Get the value for the specified subscript. (enum version)
float operator[] (DtVectorOffset ind) const
 a const version to get the value for the specified subscript. (enum version)
int operator== (const DtVectorT< float > &vec) const
 Get whether another vector equals this vector.
int operator!= (const DtVectorT< float > &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 floatx () const
 gets/sets the x component of a Vector
void setX (const float &x)
 gets/sets the x component of a Vector
const floaty () const
 gets/sets the y component of a Vector
void setY (const float &y)
 gets/sets the y component of a Vector
const floatz () const
 gets/sets the z component of a Vector
void setZ (const float &z)
 gets/sets the z component of a Vector
 operator float * ()
 operator const float * () const

Static Public Member Functions

static const DtVector32zero ()
 Get a zeroed vector.
static const DtVector32i ()
 Get a (1,0,0) vector.
static const DtVector32j ()
 Get a (0,1,0) vector.
static const DtVector32k ()
 Get a (0,0,1) vector.
static const DtVector32ones ()
 Get a vector set to all ones.

Additional Inherited Members

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

Constructor & Destructor Documentation

DtVector32::DtVector32 ( )
inline
DtVector32::DtVector32 ( const float x,
const float y,
const float z 
)
inline

Construct from three doubles.

DtVector32::~DtVector32 ( )
inline

destructor

DtVector32::DtVector32 ( const DtVector32 vec)
inline

copy constructor

DtVector32::DtVector32 ( const DtVectorT< float > &  vec)
inline

Member Function Documentation

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

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

DtVector32 DtVector32::crossProduct ( const DtVector32 v) const
inline

Compute cross product with another vector.

float DtVector32::dotProduct ( const DtVector32 v) const

Compute dot product with another vector.

static const DtVector32& DtVector32::i ( )
static

Get a (1,0,0) vector.

static const DtVector32& DtVector32::j ( )
static

Get a (0,1,0) vector.

static const DtVector32& DtVector32::k ( )
static

Get a (0,0,1) vector.

static const DtVector32& DtVector32::ones ( )
static

Get a vector set to all ones.

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

adds other to this vector

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

subtracts other from this vector (this - other)

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

assignment operator

DtVector32& DtVector32::operator= ( const DtVectorT< float > &  vec)
inline

assignment operator

Reimplemented from DtVectorT< float >.

static const DtVector32& DtVector32::zero ( )
static

Get a zeroed vector.


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

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)