#include <flowData.h>
Public Member Functions | |
vector3f (void) | |
vector3f (float nx, float ny, float nz) | |
void | setVector3f (float nx, float ny, float nz) |
double | length () |
double | getAngle (vector3f v2) |
void | normalize () |
Public Attributes | |
float | x |
float | y |
float | z |
vector3f::vector3f | ( | void | ) |
constructor
vector3f::vector3f | ( | float | nx, | |
float | ny, | |||
float | nz | |||
) |
overloaded constructor
nx | - new xvector value | |
ny | - new yvector value | |
nz | - new zvector value |
void vector3f::setVector3f | ( | float | nx, | |
float | ny, | |||
float | nz | |||
) |
function to set the data of the vector
nx | - new xvector value | |
ny | - new yvector value | |
nz | - new zvector value |
double vector3f::length | ( | ) |
Returns the length of the vector.
double vector3f::getAngle | ( | vector3f | v2 | ) |
This function calculated the angle from the vector to the vector <0, 1, 0>
void vector3f::normalize | ( | ) |
This function normalizes the Vector.
float vector3f::x |
float vector3f::y |
xValue of the vector
float vector3f::z |
yValue of the vector