Blender V2.61 - r43446
Public Member Functions | Static Public Member Functions

MT_Vector3 Class Reference

#include <MT_Vector3.h>

Inheritance diagram for MT_Vector3:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~MT_Vector3 ()
 MT_Vector3 ()
 MT_Vector3 (const float *v)
 MT_Vector3 (const double *v)
 MT_Vector3 (MT_Scalar xx, MT_Scalar yy, MT_Scalar zz)
MT_Vector3operator+= (const MT_Vector3 &v)
MT_Vector3operator-= (const MT_Vector3 &v)
MT_Vector3operator*= (MT_Scalar s)
MT_Vector3operator/= (MT_Scalar s)
MT_Scalar dot (const MT_Vector3 &v) const
MT_Scalar length2 () const
MT_Scalar length () const
MT_Vector3 absolute () const
void noiseGate (MT_Scalar threshold)
void normalize ()
MT_Vector3 normalized () const
MT_Vector3 safe_normalized () const
void scale (MT_Scalar x, MT_Scalar y, MT_Scalar z)
MT_Vector3 scaled (MT_Scalar x, MT_Scalar y, MT_Scalar z) const
bool fuzzyZero () const
MT_Scalar angle (const MT_Vector3 &v) const
MT_Vector3 cross (const MT_Vector3 &v) const
MT_Scalar triple (const MT_Vector3 &v1, const MT_Vector3 &v2) const
int closestAxis () const

Static Public Member Functions

static MT_Vector3 random ()

Detailed Description

Definition at line 53 of file MT_Vector3.h.


Constructor & Destructor Documentation

virtual MT_Vector3::~MT_Vector3 ( ) [inline, virtual]

Definition at line 55 of file MT_Vector3.h.

MT_Vector3::MT_Vector3 ( ) [inline]

Definition at line 56 of file MT_Vector3.h.

Referenced by absolute(), cross(), random(), safe_normalized(), and scaled().

MT_Vector3::MT_Vector3 ( const float *  v) [inline]

Definition at line 57 of file MT_Vector3.h.

MT_Vector3::MT_Vector3 ( const double *  v) [inline]

Definition at line 58 of file MT_Vector3.h.

MT_Vector3::MT_Vector3 ( MT_Scalar  xx,
MT_Scalar  yy,
MT_Scalar  zz 
) [inline]

Definition at line 59 of file MT_Vector3.h.


Member Function Documentation

GEN_INLINE MT_Vector3 MT_Vector3::absolute ( ) const

Definition at line 57 of file MT_Vector3.inl.

References MT_Tuple3::m_co, MT_abs(), and MT_Vector3().

Referenced by closestAxis().

GEN_INLINE MT_Scalar MT_Vector3::angle ( const MT_Vector3 v) const

Definition at line 88 of file MT_Vector3.inl.

References acos(), dot(), length2(), MT_assert, MT_fuzzyZero(), and sqrt().

Referenced by MT_angle().

GEN_INLINE int MT_Vector3::closestAxis ( ) const

Definition at line 106 of file MT_Vector3.inl.

References absolute().

Referenced by SG_Spatial::inside(), KX_Scene::MarkVisible(), and RAS_CalcTexMatrix().

GEN_INLINE MT_Vector3 MT_Vector3::cross ( const MT_Vector3 v) const
GEN_INLINE MT_Scalar MT_Vector3::dot ( const MT_Vector3 v) const
GEN_INLINE bool MT_Vector3::fuzzyZero ( ) const
GEN_INLINE MT_Scalar MT_Vector3::length ( ) const
GEN_INLINE MT_Scalar MT_Vector3::length2 ( ) const
GEN_INLINE void MT_Vector3::noiseGate ( MT_Scalar  threshold)

Definition at line 65 of file MT_Vector3.inl.

References length2(), and MT_Tuple3::setValue().

GEN_INLINE void MT_Vector3::normalize ( )
GEN_INLINE MT_Vector3 MT_Vector3::normalized ( ) const
GEN_INLINE MT_Vector3 & MT_Vector3::operator*= ( MT_Scalar  s)

Definition at line 13 of file MT_Vector3.inl.

References MT_Tuple3::m_co.

GEN_INLINE MT_Vector3 & MT_Vector3::operator+= ( const MT_Vector3 v)

Reimplemented in MT_Point3.

Definition at line 3 of file MT_Vector3.inl.

References MT_Tuple3::m_co.

GEN_INLINE MT_Vector3 & MT_Vector3::operator-= ( const MT_Vector3 v)

Reimplemented in MT_Point3.

Definition at line 8 of file MT_Vector3.inl.

References MT_Tuple3::m_co.

GEN_INLINE MT_Vector3 & MT_Vector3::operator/= ( MT_Scalar  s)

Definition at line 18 of file MT_Vector3.inl.

References MT_assert, and MT_fuzzyZero().

GEN_INLINE MT_Vector3 MT_Vector3::random ( ) [static]

Definition at line 111 of file MT_Vector3.inl.

References cos(), MT_2_PI(), MT_random(), MT_Vector3(), sin(), sqrt(), and MT_Tuple3::z().

GEN_INLINE MT_Vector3 MT_Vector3::safe_normalized ( ) const
GEN_INLINE void MT_Vector3::scale ( MT_Scalar  x,
MT_Scalar  y,
MT_Scalar  z 
)

Definition at line 80 of file MT_Vector3.inl.

References MT_Tuple3::m_co.

Referenced by bl_ConvertBlenderObject_Single().

GEN_INLINE MT_Vector3 MT_Vector3::scaled ( MT_Scalar  x,
MT_Scalar  y,
MT_Scalar  z 
) const

Definition at line 84 of file MT_Vector3.inl.

References MT_Tuple3::m_co, and MT_Vector3().

GEN_INLINE MT_Scalar MT_Vector3::triple ( const MT_Vector3 v1,
const MT_Vector3 v2 
) const

Definition at line 100 of file MT_Vector3.inl.

References MT_Tuple3::m_co.

Referenced by MT_triple().


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