vector3f Struct Reference

#include <flowData.h>

List of all members.

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


Detailed Description

Struct to save the data of a vector of 3 floats (like the velocity vector of a streampoint)


Constructor & Destructor Documentation

vector3f::vector3f ( void   ) 

constructor

vector3f::vector3f ( float  nx,
float  ny,
float  nz 
)

overloaded constructor

Parameters:
nx - new xvector value
ny - new yvector value
nz - new zvector value


Member Function Documentation

void vector3f::setVector3f ( float  nx,
float  ny,
float  nz 
)

function to set the data of the vector

Parameters:
nx - new xvector value
ny - new yvector value
nz - new zvector value

double vector3f::length (  ) 

Returns the length of the vector.

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>

Returns:
double the angle

void vector3f::normalize (  ) 

This function normalizes the Vector.


Member Data Documentation

float vector3f::x

float vector3f::y

xValue of the vector

float vector3f::z

yValue of the vector


The documentation for this struct was generated from the following file:
Generated on Wed Jan 17 03:48:40 2007 for Flowvis-parma_wallaby by  doxygen 1.5.1-p1