- Cal3D 0.11 API Reference -

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

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 Mar 13 23:35:25 2008 by The Cal3D Team with Doxygen 1.3.9.1