- Cal3D 0.11 API Reference -

CalVector Class Reference

The vector class. More...

#include <vector.h>

List of all members.

Public Member Functions

 CalVector (const CalVector &v)
 CalVector (float vx, float vy, float vz)
float & operator[] (unsigned int i)
const float & operator[] (unsigned int i) const
void operator= (const CalVector &v)
void operator+= (const CalVector &v)
void operator-= (const CalVector &v)
void operator *= (const float d)
void operator *= (const CalQuaternion &q)
 Transforms the vector instance by a quaternion.
void operator *= (const CalMatrix &m)
void operator/= (const float d)
bool operator== (const CalVector &v) const
bool operator!= (const CalVector &v) const
void blend (float d, const CalVector &v)
void clear ()
float length () const
float normalize ()
void set (float vx, float vy, float vz)

Public Attributes

float x
float y
float z


Detailed Description

The vector class.


Member Function Documentation

void CalVector::operator *= const CalQuaternion q  ) 
 

Transforms the vector instance by a quaternion.

This function transforms the vector instance by a given quaternion.

Parameters:
q The quaternion to be used for the transformation.


The documentation for this class was generated from the following files:
Generated at Thu Jun 29 19:04:00 2006 by The Cal3D Team with Doxygen 1.4.6