#include <ZLinAlg.h>
Public Member Functions | |
| Column3Vector () | |
| ~Column3Vector () | |
| float | getX () |
| float | getY () |
| float | getZ () |
| void | setvalues (float X, float Y, float Z) |
| void | setX (float X) |
| void | setY (float Y) |
| void | setZ (float Z) |
| bool | normalize () |
| float | norm () |
| Column3Vector | operator+ (Column3Vector Vright) |
| Column3Vector | operator- (Column3Vector Vright) |
| Column3Vector | operator * (Column3Vector Vright) |
| Column3Vector | operator * (float) |
| Column3Vector | operator/ (float) |
| Column3Vector & | operator= (Column3Vector) |
| void | PrintSelf () |
|
|
Constructor method. The vector elements are initialized to zero.
|
|
|
Destructor method. Nothing to do here.
|
|
|
Get the first element of the 3-vector.
|
|
|
Get the second element of the 3-vector.
|
|
|
Get the third element of the 3-vector.
|
|
|
Compute the norm of the 3-vector.
|
|
|
Normalize the 3-vector.
|
|
|
An overloaded operator for multiplying a 3-vector by a scalar value.
|
|
|
An overloaded operator for computing the NORMALIZED cross product of two 3-vectors.
|
|
|
An overloaded operator for summing two 3-vectors.
|
|
|
An overloaded operator for subtracting a 3-vector.
|
|
|
An overloaded operator for dividing a 3-vector by a scalar value.
|
|
|
An overloaded operator to assign a 3-vector value.
|
|
|
Print the contents of the 3-vector to the console. |
|
||||||||||||||||
|
Set the vector elements using the X, Y and Z values provided.
|
|
|
Get the specified element of the 3-vector.
|
|
|
Get the specified element of the 3-vector.
|
|
|
Get the specified element of the 3-vector.
|
1.4.6