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

Represents a three-dimensional vector. More...

List of all members.

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.
aiVector3DNormalize ()
 Normalize the vector.
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.
float SquareLength () const
 Get the squared length of the vector.
const aiVector3D SymMul (const aiVector3D &o)
 Componentwise multiplication of two vectors.

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


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