Main Page | Class Hierarchy | Class List | Directories | File List

Vec3 Class Reference

Representation of a three-dimensional vector. More...

#include <ApiGraphics/Vec3.h>

List of all members.

Public Member Functions

 Vec3 (float x, float y, float z)
 Vec3 (float c=0)
 Vec3 (Vec2 v, float z=0)
 Vec3 (float x, Vec2 yz)
 Vec3 (const float *v)
 Vec3 (Vec4 vec)
 Vec3 (const QDomElement &element)
 operator const float * () const
 operator float * ()
QString toQString () const
Vec4 toVec4 () const
void initFromDOMElement (const QDomElement &element)
QDomElement domElement (const QString &name, QDomDocument &document) const
float norm () const
float norm2 () const
void normalize ()
Vec3 normalized () const
Vec3 ortho () const
Vec3operator+= (const Vec3 &a)
Vec3operator-= (const Vec3 &a)
Vec3operator *= (const Vec3 &a)
Vec3operator/= (const Vec3 &a)
Vec3operator *= (float s)
Vec3operator/= (float s)
Vec2 xx () const
Vec2 xy () const
Vec2 xz () const
Vec2 yx () const
Vec2 yy () const
Vec2 yz () const
Vec2 zx () const
Vec2 zy () const
Vec2 zz () const
Vec3 yzx () const
Vec3 zxy () const
void glVertex () const
void glNormal () const

Static Public Member Functions

static Vec3 random ()
static Vec3 random (float min, float max)
static Vec3 random (Vec3 min, Vec3 max)
static Vec3 randomDir ()

Friends

Vec3 vec (const Vec3 &a, const Vec3 &b)
float dot (const Vec3 &a, const Vec3 &b)
Vec3 operator^ (const Vec3 &a, const Vec3 &b)
float operator| (const Vec3 &a, const Vec3 &b)
float dist (Vec3 v1, Vec3 v2)
Vec3 triangleNormal (const Vec3 &a, const Vec3 &b, const Vec3 &c)
Vec3 operator- (const Vec3 &a)
Vec3 operator+ (const Vec3 &a, const Vec3 &b)
Vec3 operator- (const Vec3 &a, const Vec3 &b)
Vec3 operator * (const Vec3 &a, const Vec3 &b)
Vec3 operator/ (const Vec3 &a, const Vec3 &b)
Vec3 operator * (float s, const Vec3 &a)
Vec3 operator * (const Vec3 &a, float s)
Vec3 operator/ (float s, const Vec3 &a)
Vec3 operator/ (const Vec3 &a, float s)
bool operator== (const Vec3 &a, const Vec3 &b)
bool operator!= (const Vec3 &a, const Vec3 &b)
bool operator>= (const Vec3 &a, const Vec3 &b)
bool operator<= (const Vec3 &a, const Vec3 &b)
bool operator> (const Vec3 &a, const Vec3 &b)
bool operator< (const Vec3 &a, const Vec3 &b)
bool operator>= (const Vec3 &a, float b)
bool operator<= (const Vec3 &a, float b)
bool operator> (const Vec3 &a, float b)
bool operator< (const Vec3 &a, float b)
Vec3 abs (const Vec3 &a)
Vec3 sign (const Vec3 &a)
Vec3 floor (const Vec3 &a)
Vec3 ceil (const Vec3 &a)
Vec3 fract (const Vec3 &a)
Vec3 min (const Vec3 &a, const Vec3 &b)
Vec3 min (const Vec3 &a, float b)
Vec3 max (const Vec3 &a, const Vec3 &b)
Vec3 max (const Vec3 &a, float b)
Vec3 clamp (const Vec3 &a, const Vec3 &min, const Vec3 &max)
Vec3 clamp (const Vec3 &a, float min, float max)
Vec3 mix (const Vec3 &a, const Vec3 &b, const Vec3 &alpha)
Vec3 mix (const Vec3 &a, const Vec3 &b, float alpha)
Vec3 step (const Vec3 &e, const Vec3 &a)
Vec3 step (float e, const Vec3 &a)
float min (const Vec3 &a)
float max (const Vec3 &a)


Detailed Description

Representation of a three-dimensional vector.


The documentation for this class was generated from the following files:
Generated on Fri Nov 14 20:49:48 2008 for Api Graphics by  doxygen 1.4.4