Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Quat Class Reference

Quaternion class. More...

#include <VMDQuat.h>

List of all members.

Public Methods

 Quat ()
 initialize to identity. More...

 Quat (double x, double y, double z, double w)
void rotate (const float *u, float angle)
void rotate (char axis, float angle)
 axis = 'x', 'y', or 'z'. More...

void invert ()
void identity ()
void mult (const Quat &)
void multpoint3 (const float *, float *) const
void fromMatrix (const float *)
 convert from a row-major matrix. More...

void printQuat (float *)
 print it. More...

void printMatrix (float *)
 print it as a matrix. More...


Detailed Description

Quaternion class.

Definition at line 25 of file VMDQuat.h.


Constructor & Destructor Documentation

Quat::Quat   [inline]
 

initialize to identity.

Definition at line 27 of file VMDQuat.h.

References identity.

Quat::Quat double    x,
double    y,
double    z,
double    w
 

Definition at line 30 of file VMDQuat.C.

References z.


Member Function Documentation

void Quat::fromMatrix const float *   
 

convert from a row-major matrix.

Definition at line 119 of file VMDQuat.C.

References mat, and perm.

void Quat::identity  
 

Definition at line 25 of file VMDQuat.C.

Referenced by Quat.

void Quat::invert  
 

Definition at line 63 of file VMDQuat.C.

void Quat::mult const Quat &   
 

Definition at line 69 of file VMDQuat.C.

References qw, qx, qy, qz, and z.

Referenced by multpoint3, and rotate.

void Quat::multpoint3 const float *   ,
float *   
const
 

Definition at line 81 of file VMDQuat.C.

References mult, qx, qy, and qz.

Referenced by HMDMgr::rot_basis_quat, HMDMgr::rot_point_quat, PickModeMoveRep::rotate, PickModeMoveMolecule::rotate, PickModeMoveFragment::rotate, and PickModeMoveResidue::rotate.

void Quat::printMatrix float *   
 

print it as a matrix.

Definition at line 98 of file VMDQuat.C.

void Quat::printQuat float *   
 

print it.

Definition at line 91 of file VMDQuat.C.

void Quat::rotate char    axis,
float    angle
 

axis = 'x', 'y', or 'z'.

Definition at line 49 of file VMDQuat.C.

References DEGTORAD, mult, qw, qx, qy, and qz.

void Quat::rotate const float *    u,
float    angle
 

Definition at line 37 of file VMDQuat.C.

References DEGTORAD, mult, qw, qx, qy, and qz.


The documentation for this class was generated from the following files:
Generated on Thu Apr 25 02:45:22 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002