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

peon::Vector4 Class Reference

This object is used as a 4-tuple. More...

#include <Vector4.h>

List of all members.

Public Member Functions

 Vector4 (float x_=0.0f, float y_=0.0f, float z_=0.0f, float w_=0.0f)
void set (float x_, float y_, float z_, float w_)
float length (void)
void normalize (void)
Vector4 operator+ (const Vector4 &other)
Vector4 operator- (const Vector4 &other)
Vector4 operator * (const Vector4 &other)
Vector4 operator/ (const Vector4 &other)
Vector4 operator * (const float scalar)
Vector4operator= (const Vector4 &other)
Vector4operator+= (const Vector4 &other)
Vector4operator-= (const Vector4 &other)
Vector4 operator+ (void) const
Vector4 operator- (void) const

Static Public Member Functions

static float distance (const Vector4 &v1, const Vector4 &v2)
static float dotProduct (const Vector4 &v1, const Vector4 &v2)
static Vector4 crossProduct (const Vector4 &v1, const Vector4 &v2)

Public Attributes

float x
 x component
float y
 y component
float z
 z component
float w
 w component

Friends

Vector4 operator * (const float scalar, const Vector4 &other)


Detailed Description

This object is used as a 4-tuple.

So far it's mainly just used for lighting purposes in the object, but it could also perhaps be used to store RGBA color information...


The documentation for this class was generated from the following file:
Generated on Thu Dec 1 01:55:41 2005 for Peon by  doxygen 1.4.1