Logo Search packages:      
Sourcecode: blender version File versions  Download package

MT_Quaternion Class Reference

#include <MT_Quaternion.h>

Inheritance diagram for MT_Quaternion:

MT_Vector4 MT_Tuple4

List of all members.


Detailed Description

Id
MT_Quaternion.h 14444 2008-04-16 22:40:48Z hos
***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 51 of file MT_Quaternion.h.


Public Member Functions

MT_Vector4 absolute () const
MT_Scalar angle (const MT_Quaternion &q) const
MT_Quaternion conjugate () const
void conjugate ()
MT_Scalar dot (const MT_Vector4 &v) const
bool fuzzyZero () const
void getValue (double *v) const
void getValue (float *v) const
const MT_Scalar * getValue () const
MT_Scalar * getValue ()
MT_Quaternion inverse () const
void invert ()
MT_Scalar length () const
MT_Scalar length2 () const
 MT_Quaternion (MT_Scalar yaw, MT_Scalar pitch, MT_Scalar roll)
 MT_Quaternion (const MT_Vector3 &axis, MT_Scalar mt_angle)
 MT_Quaternion (MT_Scalar xx, MT_Scalar yy, MT_Scalar zz, MT_Scalar ww)
 MT_Quaternion (const double v[4])
 MT_Quaternion (const float v[4])
 MT_Quaternion (const MT_Vector4 &v)
void normalize ()
MT_Vector4 normalized () const
MT_Vector4operator*= (MT_Scalar s)
MT_Quaternionoperator*= (const MT_Quaternion &q)
MT_Vector4operator+= (const MT_Vector4 &v)
MT_Vector4operator-= (const MT_Vector4 &v)
MT_Vector4operator/= (MT_Scalar s)
const MT_Scalar & operator[] (int i) const
MT_Scalar & operator[] (int i)
void scale (MT_Scalar x, MT_Scalar y, MT_Scalar z, MT_Scalar w)
MT_Vector4 scaled (MT_Scalar x, MT_Scalar y, MT_Scalar z, MT_Scalar w) const
void setEuler (MT_Scalar yaw, MT_Scalar pitch, MT_Scalar roll)
void setRotation (const MT_Vector3 &axis, MT_Scalar mt_angle)
void setValue (MT_Scalar xx, MT_Scalar yy, MT_Scalar zz, MT_Scalar ww)
void setValue (const double *v)
void setValue (const float *v)
MT_Quaternion slerp (const MT_Quaternion &q, const MT_Scalar &t) const
const MT_Scalar & w () const
MT_Scalar & w ()
const MT_Scalar & x () const
MT_Scalar & x ()
const MT_Scalar & y () const
MT_Scalar & y ()
const MT_Scalar & z () const
MT_Scalar & z ()

Static Public Member Functions

static MT_Quaternion random ()

Protected Attributes

MT_Scalar m_co [4]

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

Generated by  Doxygen 1.6.0   Back to index