#include <vec3.h>
List of all members.
Constructor & Destructor Documentation
| vec3::vec3 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z = 0.0f |
|
) |
| |
| vec3::vec3 |
( |
const float * |
u | ) |
|
| vec3::vec3 |
( |
const vec3 & |
u | ) |
|
Member Function Documentation
| float vec3::dist |
( |
const vec3 & |
u | ) |
|
length of the vectors' difference
| float vec3::dist2 |
( |
const vec3 & |
u | ) |
|
norm of the vectors' difference (dist*dist)
| float vec3::dot |
( |
vec3 |
u | ) |
|
| float vec3::length |
( |
| ) |
const [inline] |
| float vec3::norm |
( |
| ) |
const [inline] |
norm of the vector (length*length)
| vec3 & vec3::operator! |
( |
| ) |
|
| bool vec3::operator!= |
( |
const vec3 & |
u | ) |
const |
returns true if the vectors differ in at least one component
| const vec3 vec3::operator* |
( |
float |
t | ) |
const |
scales the vector with the scalar
| float vec3::operator* |
( |
const vec3 & |
u | ) |
const [inline] |
| vec3 & vec3::operator*= |
( |
float |
t | ) |
|
scales this vector with the scalar
| const vec3 vec3::operator+ |
( |
const vec3 & |
u | ) |
const |
| vec3 & vec3::operator+= |
( |
const vec3 & |
u | ) |
|
adds the input vector to this one
| const vec3 vec3::operator- |
( |
const vec3 & |
u | ) |
const |
| vec3 & vec3::operator- |
( |
| ) |
|
| vec3 & vec3::operator-= |
( |
const vec3 & |
u | ) |
|
subtracts the input vector from this one
| const vec3 vec3::operator/ |
( |
float |
t | ) |
const |
scales the vector with the inverse of the scalar
| vec3 & vec3::operator/= |
( |
float |
t | ) |
|
scales this vector with the inverse of the scalar
| vec3 & vec3::operator= |
( |
const vec3 & |
u | ) |
|
| bool vec3::operator== |
( |
const vec3 & |
u | ) |
const |
returns true if the vectors are equal
| float & vec3::operator[] |
( |
unsigned |
i | ) |
|
returns an element of the vector
| const vec3 vec3::operator^ |
( |
const vec3 & |
u | ) |
const |
print the vector components
Member Data Documentation
The documentation for this class was generated from the following files: