Assimp  v2.0 (November 2010)
Public Member Functions | Public Attributes | List of all members
aiVector3D Struct Reference

Represents a three-dimensional vector. More...

Public Member Functions

 aiVector3D ()
 
 aiVector3D (float _x, float _y, float _z)
 
 aiVector3D (float _xyz)
 
 aiVector3D (const aiVector3D &o)
 
float Length () const
 Get the length of the vector. More...
 
aiVector3DNormalize ()
 Normalize the vector. More...
 
bool operator!= (const aiVector3D &other) const
 
const aiVector3Doperator*= (float f)
 
aiVector3Doperator*= (const aiMatrix3x3 &mat)
 
aiVector3Doperator*= (const aiMatrix4x4 &mat)
 
const aiVector3Doperator+= (const aiVector3D &o)
 
const aiVector3Doperator-= (const aiVector3D &o)
 
const aiVector3Doperator/= (float f)
 
bool operator== (const aiVector3D &other) const
 
float operator[] (unsigned int i) const
 
float & operator[] (unsigned int i)
 
void Set (float pX, float pY, float pZ=0.f)
 Set the components of a vector. More...
 
float SquareLength () const
 Get the squared length of the vector. More...
 
const aiVector3D SymMul (const aiVector3D &o)
 Componentwise multiplication of two vectors. More...
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

Represents a three-dimensional vector.

Constructor & Destructor Documentation

aiVector3D::aiVector3D ( )
inline
aiVector3D::aiVector3D ( float  _x,
float  _y,
float  _z 
)
inline
aiVector3D::aiVector3D ( float  _xyz)
inline
aiVector3D::aiVector3D ( const aiVector3D o)
inline

Member Function Documentation

AI_FORCE_INLINE float aiVector3D::Length ( ) const

Get the length of the vector.

Returns
length
AI_FORCE_INLINE aiVector3D & aiVector3D::Normalize ( )

Normalize the vector.

AI_FORCE_INLINE bool aiVector3D::operator!= ( const aiVector3D other) const
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator*= ( float  f)
AI_FORCE_INLINE aiVector3D & aiVector3D::operator*= ( const aiMatrix3x3 mat)
AI_FORCE_INLINE aiVector3D & aiVector3D::operator*= ( const aiMatrix4x4 mat)
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator+= ( const aiVector3D o)
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator-= ( const aiVector3D o)
AI_FORCE_INLINE const aiVector3D & aiVector3D::operator/= ( float  f)
AI_FORCE_INLINE bool aiVector3D::operator== ( const aiVector3D other) const
AI_FORCE_INLINE float aiVector3D::operator[] ( unsigned int  i) const
AI_FORCE_INLINE float & aiVector3D::operator[] ( unsigned int  i)
AI_FORCE_INLINE void aiVector3D::Set ( float  pX,
float  pY,
float  pZ = 0.f 
)

Set the components of a vector.

Parameters
pXX component
pYY component
pZZ component
AI_FORCE_INLINE float aiVector3D::SquareLength ( ) const

Get the squared length of the vector.

Returns
Square length
AI_FORCE_INLINE const aiVector3D aiVector3D::SymMul ( const aiVector3D o)

Componentwise multiplication of two vectors.

Note that vec*vec yields the dot product.

Parameters
oSecond factor

Member Data Documentation

float aiVector3D::x
float aiVector3D::y
float aiVector3D::z

The documentation for this struct was generated from the following files: