#include <vector.hxx>
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) |
Definition at line 29 of file vector.hxx.
|
Construction:.
Definition at line 23 of file vector.cxx. Referenced by cross(), operator *(), operator+(), operator-(), and rotate(). |
|
Definition at line 31 of file vector.cxx. |
|
Definition at line 64 of file vector.cxx. |
|
Definition at line 73 of file vector.cxx. References CL_Vector(), x, y, and z. |
|
Definition at line 59 of file vector.cxx. Referenced by angle(). |
|
Attributes:.
Definition at line 39 of file vector.cxx. Referenced by angle(), and normalize(). |
|
Definition at line 48 of file vector.cxx. |
|
Operators:.
Definition at line 108 of file vector.cxx. References CL_Vector(). |
|
Definition at line 140 of file vector.cxx. |
|
Definition at line 186 of file vector.cxx. References operator==(). |
|
Definition at line 148 of file vector.cxx. References CL_Vector(), w, x, y, and z. |
|
Definition at line 124 of file vector.cxx. |
|
Definition at line 164 of file vector.cxx. References CL_Vector(). |
|
Definition at line 156 of file vector.cxx. References CL_Vector(), x, y, and z. |
|
Definition at line 132 of file vector.cxx. |
|
Definition at line 172 of file vector.cxx. |
|
Definition at line 181 of file vector.cxx. Referenced by operator!=(). |
|
Definition at line 191 of file vector.cxx. |
|
Definition at line 82 of file vector.cxx. References CL_Vector(), x, y, and z. |
|
Definition at line 100 of file vector.cxx. |
|
Definition at line 116 of file vector.cxx. |
|
Definition at line 204 of file vector.cxx. |
|
Definition at line 40 of file vector.hxx. Referenced by CL_Vector(), operator *(), operator *=(), operator+(), operator+=(), operator-=(), operator=(), operator==(), operator[](), and round(). |
|
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(). |
|
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(). |
|
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(). |