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

peon::Vector3 Class Reference

This object is used to represent a 3-tuple entity for use mostly during object positioning in a 3D gameworld. More...

#include <Vector3.h>

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Friends

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


Detailed Description

This object is used to represent a 3-tuple entity for use mostly during object positioning in a 3D gameworld.

It's perfectly acceptable to keep the z-plane variable to 1.0f, if you're only interested in using 2D graphics.


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