Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CL_Vector Class Reference

#include <vector.hxx>

List of all members.

Public Member Functions

 CL_Vector (float x=0.0, float y=0.0, float z=0.0, float w=1.0)
 Construction:.

 CL_Vector (const CL_Vector &other)
float norm () const
 Attributes:.

void normalize ()
float dot (const CL_Vector &vector) const
float angle (const CL_Vector &vector) const
CL_Vector cross (const CL_Vector &vector) const
CL_Vector rotate (float angle, const CL_Vector &axis) const
void round ()
CL_Vector operator * (float scalar) const
 Operators:.

void operator+= (const CL_Vector &v)
void operator-= (const CL_Vector &v)
void operator *= (float s)
CL_Vector operator+ (const CL_Vector &v) const
CL_Vector operator- (const CL_Vector &v) const
CL_Vector operator- () const
CL_Vector & operator= (const CL_Vector &v)
int operator== (const CL_Vector &v) const
int operator!= (const CL_Vector &v) const
float & operator[] (int n)

Public Attributes

float x
 Variables:.

float y
float z
float w

Friends

CL_Vector operator * (float scalar, const CL_Vector &vector)
std::ostream & operator<< (std::ostream &, const CL_Vector &v)


Detailed Description

clanCore="Math" header=core.h

Definition at line 29 of file vector.hxx.


Constructor & Destructor Documentation

CL_Vector::CL_Vector float    x = 0.0,
float    y = 0.0,
float    z = 0.0,
float    w = 1.0
 

Construction:.

Definition at line 23 of file vector.cxx.

Referenced by cross(), operator *(), operator+(), operator-(), and rotate().

CL_Vector::CL_Vector const CL_Vector &    other
 

Definition at line 31 of file vector.cxx.

References w, x, y, and z.


Member Function Documentation

float CL_Vector::angle const CL_Vector &    vector const
 

Definition at line 64 of file vector.cxx.

References dot(), and norm().

CL_Vector CL_Vector::cross const CL_Vector &    vector const
 

Definition at line 73 of file vector.cxx.

References CL_Vector(), x, y, and z.

float CL_Vector::dot const CL_Vector &    vector const
 

Definition at line 59 of file vector.cxx.

References x, y, and z.

Referenced by angle().

float CL_Vector::norm   const
 

Attributes:.

Definition at line 39 of file vector.cxx.

Referenced by angle(), and normalize().

void CL_Vector::normalize  
 

Definition at line 48 of file vector.cxx.

References norm(), x, y, and z.

CL_Vector CL_Vector::operator * float    scalar const
 

Operators:.

Definition at line 108 of file vector.cxx.

References CL_Vector().

void CL_Vector::operator *= float    s
 

Definition at line 140 of file vector.cxx.

References w, x, y, and z.

int CL_Vector::operator!= const CL_Vector &    v const
 

Definition at line 186 of file vector.cxx.

References operator==().

CL_Vector CL_Vector::operator+ const CL_Vector &    v const
 

Definition at line 148 of file vector.cxx.

References CL_Vector(), w, x, y, and z.

void CL_Vector::operator+= const CL_Vector &    v
 

Definition at line 124 of file vector.cxx.

References w, x, y, and z.

CL_Vector CL_Vector::operator-   const
 

Definition at line 164 of file vector.cxx.

References CL_Vector().

CL_Vector CL_Vector::operator- const CL_Vector &    v const
 

Definition at line 156 of file vector.cxx.

References CL_Vector(), x, y, and z.

void CL_Vector::operator-= const CL_Vector &    v
 

Definition at line 132 of file vector.cxx.

References w, x, y, and z.

CL_Vector & CL_Vector::operator= const CL_Vector &    v
 

Definition at line 172 of file vector.cxx.

References w, x, y, and z.

int CL_Vector::operator== const CL_Vector &    v const
 

Definition at line 181 of file vector.cxx.

References w, x, y, and z.

Referenced by operator!=().

float & CL_Vector::operator[] int    n
 

Definition at line 191 of file vector.cxx.

References w, x, y, and z.

CL_Vector CL_Vector::rotate float    angle,
const CL_Vector &    axis
const
 

Definition at line 82 of file vector.cxx.

References CL_Vector(), x, y, and z.

void CL_Vector::round  
 

Definition at line 100 of file vector.cxx.

References w, x, y, and z.


Friends And Related Function Documentation

CL_Vector operator * float    s,
const CL_Vector &    v
[friend]
 

Definition at line 116 of file vector.cxx.

std::ostream& operator<< std::ostream &   ,
const CL_Vector &    v
[friend]
 

Definition at line 204 of file vector.cxx.


Member Data Documentation

float CL_Vector::w
 

Definition at line 40 of file vector.hxx.

Referenced by CL_Vector(), operator *(), operator *=(), operator+(), operator+=(), operator-=(), operator=(), operator==(), operator[](), and round().

float CL_Vector::x
 

Variables:.

Definition at line 34 of file vector.hxx.

Referenced by CL_Vector(), cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), operator=(), operator==(), operator[](), rotate(), and round().

float CL_Vector::y
 

Definition at line 36 of file vector.hxx.

Referenced by CL_Vector(), cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), operator=(), operator==(), operator[](), rotate(), and round().

float CL_Vector::z
 

Definition at line 38 of file vector.hxx.

Referenced by CL_Vector(), cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), operator=(), operator==(), operator[](), rotate(), and round().


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 10:25:14 2003 for Construo by doxygen1.3-rc3

Rabisu Mirror Service We provide mirrors to support Open source communities. Our mirror server is located in Istanbul/Turkey region.

Please do not hesitate to contact mirror@rabisu.com for new open source mirror submissions.