#include <Vector3.h>
Collaboration diagram for Vector3< V >:
Public Member Functions | |
Vector3 () | |
Default constructor 4 gcc. | |
Vector3 (V x, V y, V z) | |
Default constructor. | |
Vector3< V > & | operator= (const Vector3< V > &other) |
Assignment operator. | |
Vector3 (const Vector3< V > &other) | |
Copy constructor. | |
Vector3< V > & | operator+= (const Vector3< V > &other) |
Addition of another vector to this one. | |
Vector3< V > & | operator-= (const Vector3< V > &other) |
Substraction of this vector from another one. | |
Vector3< V > & | operator *= (const V &factor) |
Multiplication of this vector by a factor. | |
Vector3< V > & | operator/= (const V &factor) |
Division of this vector by a factor. | |
Vector3< V > | operator+ (const Vector3< V > &other) const |
Addition of another vector to this one. | |
Vector3< V > | operator- (const Vector3< V > &other) const |
Subtraction of another vector to this one. | |
V | operator * (const Vector3< V > &other) const |
Inner product of this vector and another one. | |
Vector3< V > | operator * (const V &factor) const |
Multiplication of this vector by a factor. | |
Vector3< V > | operator/ (const V &factor) const |
Division of this vector by a factor. | |
bool | operator== (const Vector3< V > &other) const |
Comparison of another vector with this one. | |
bool | operator!= (const Vector3< V > &other) const |
Comparison of another vector with this one. | |
V & | operator[] (int i) |
array-like member access. | |
V | abs () const |
Calculation of the length of this vector. | |
Vector3< V > | operator^ (const Vector3< V > &other) |
Crossproduct of this vector and another vector. | |
Vector3< V > & | operator^= (const Vector3< V > &other) |
Crossproduct of this vector and another vector. | |
Vector3< V > | normalize (V len) |
normalize this vector. | |
Vector3< V > | normalize () |
normalize this vector. | |
Public Attributes | |
V | x |
The vector values. | |
V | y |
The vector values. | |
V | z |
The vector values. |
Definition at line 15 of file Vector3.h.
|
Default constructor 4 gcc.
|
|
Default constructor.
|
|
Copy constructor.
|
|
Assignment operator.
|
|
Addition of another vector to this one.
|
|
Substraction of this vector from another one.
|
|
Multiplication of this vector by a factor.
|
|
Division of this vector by a factor.
|
|
Addition of another vector to this one.
|
|
Subtraction of another vector to this one.
|
|
Inner product of this vector and another one.
|
|
Multiplication of this vector by a factor.
|
|
Division of this vector by a factor.
|
|
Comparison of another vector with this one.
|
|
Comparison of another vector with this one.
|
|
array-like member access.
|
|
Calculation of the length of this vector.
Definition at line 164 of file Vector3.h. Referenced by Vector3< double >::normalize(). |
|
Crossproduct of this vector and another vector.
|
|
Crossproduct of this vector and another vector.
|
|
normalize this vector.
|
|
normalize this vector.
|
|
|
|