Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

quat Struct Reference

#include <nv_algebra.h>

Collaboration diagram for quat:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 quat (nv_scalar x=0, nv_scalar y=0, nv_scalar z=0, nv_scalar w=1)
 quat (const quat &quat)
 quat (const vec3 &axis, nv_scalar angle)
 quat (const mat3 &rot)
quatoperator= (const quat &quat)
quat operator- ()
quat Inverse ()
void Normalize ()
void FromMatrix (const mat3 &mat)
void ToMatrix (mat3 &mat) const
quatoperator *= (const quat &quat)
nv_scalaroperator[] (int i)
const nv_scalar operator[] (int i) const

Static Public Attributes

static const quat Identity

Detailed Description

Definition at line 481 of file nv_algebra.h.


Constructor & Destructor Documentation

quat::quat nv_scalar  x = 0,
nv_scalar  y = 0,
nv_scalar  z = 0,
nv_scalar  w = 1
 

Definition at line 736 of file nv_algebra.cpp.

Referenced by Inverse().

quat::quat const quat quat  ) 
 

Definition at line 740 of file nv_algebra.cpp.

References w, x, y, and z.

quat::quat const vec3 axis,
nv_scalar  angle
 

Definition at line 748 of file nv_algebra.cpp.

References vec3::norm(), scale(), w, x, y, and z.

Here is the call graph for this function:

quat::quat const mat3 rot  ) 
 

Definition at line 762 of file nv_algebra.cpp.

References FromMatrix().

Here is the call graph for this function:


Member Function Documentation

void quat::FromMatrix const mat3 mat  ) 
 

Definition at line 793 of file nv_algebra.cpp.

References scale(), w, x, y, and z.

Referenced by mat4::get_rot(), mat_2_quat(), and quat().

Here is the call graph for this function:

quat quat::Inverse  ) 
 

Definition at line 776 of file nv_algebra.cpp.

References quat(), w, x, y, and z.

Here is the call graph for this function:

void quat::Normalize  ) 
 

Definition at line 781 of file nv_algebra.cpp.

References w, x, y, and z.

quat & quat::operator *= const quat quat  ) 
 

Definition at line 858 of file nv_algebra.cpp.

quat quat::operator-  )  [inline]
 

Definition at line 488 of file nv_algebra.h.

quat & quat::operator= const quat quat  ) 
 

Definition at line 767 of file nv_algebra.cpp.

References w, x, y, and z.

const nv_scalar quat::operator[] int  i  )  const [inline]
 

Definition at line 499 of file nv_algebra.h.

nv_scalar& quat::operator[] int  i  )  [inline]
 

Definition at line 498 of file nv_algebra.h.

void quat::ToMatrix mat3 mat  )  const
 

Definition at line 823 of file nv_algebra.cpp.

References w, x, y, and z.

Referenced by quat_2_mat(), and mat4::set_rot().


Member Data Documentation

nv_scalar quat::comp[4]
 

Definition at line 504 of file nv_algebra.h.

const quat quat::Identity [static]
 

Definition at line 497 of file nv_algebra.h.

nv_scalar quat::w
 

Definition at line 502 of file nv_algebra.h.

Referenced by add_quats(), axis_to_quat(), conj(), dot(), FromMatrix(), Inverse(), Normalize(), normalize(), operator *(), operator=(), quat(), slerp_quats(), and ToMatrix().

nv_scalar quat::x
 

Definition at line 502 of file nv_algebra.h.

Referenced by add_quats(), axis_to_quat(), conj(), dot(), FromMatrix(), Inverse(), Normalize(), normalize(), operator *(), operator=(), quat(), slerp_quats(), and ToMatrix().

nv_scalar quat::y
 

Definition at line 502 of file nv_algebra.h.

Referenced by add_quats(), axis_to_quat(), conj(), dot(), FromMatrix(), Inverse(), Normalize(), normalize(), operator *(), operator=(), quat(), slerp_quats(), and ToMatrix().

nv_scalar quat::z
 

Definition at line 502 of file nv_algebra.h.

Referenced by add_quats(), axis_to_quat(), conj(), dot(), FromMatrix(), Inverse(), Normalize(), normalize(), operator *(), operator=(), quat(), slerp_quats(), and ToMatrix().


The documentation for this struct was generated from the following files:
Generated on Thu Apr 6 15:39:48 2006 for rcssserver3d by  doxygen 1.4.4