flowvec3 Class Reference

#include <flowvec3.h>

List of all members.

Public Member Functions

 flowvec3 ()
 flowvec3 (float x, float y, float z=0.0f)
 flowvec3 (const float *u)
 flowvec3 (const flowvec3 &)
float & operator[] (unsigned)
 returns an element of the vector
flowvec3operator= (const flowvec3 &)
 assignment operator
flowvec3operator+= (const flowvec3 &)
 adds the input vector to this one
flowvec3operator-= (const flowvec3 &)
 subtracts the input vector from this one
flowvec3operator*= (float)
 scales this vector with the scalar
flowvec3operator/= (float)
 scales this vector with the inverse of the scalar
const flowvec3 operator+ (const flowvec3 &) const
 adds two vectors
const flowvec3 operator- (const flowvec3 &) const
 subtracts two vectors
const flowvec3 operator* (float) const
 scales the vector with the scalar
const flowvec3 operator/ (float) const
 scales the vector with the inverse of the scalar
bool operator== (const flowvec3 &) const
 returns true if the vectors are equal
bool operator!= (const flowvec3 &) const
 returns true if the vectors differ in at least one component
flowvec3operator- ()
 opposite vector
float norm () const
 norm of the vector (length*length)
float length () const
 length of the vector
flowvec3operator! ()
 normalizes the vector
float dist2 (const flowvec3 &)
 norm of the vectors' difference (dist*dist)
float dist (const flowvec3 &)
 length of the vectors' difference
float operator* (const flowvec3 &) const
 dot product
const flowvec3 operator^ (const flowvec3 &) const
 cross product
void print ()
 print the vector components
 flowvec3 ()
 flowvec3 (float x, float y, float z=0.0f)
 flowvec3 (const float *u)
 flowvec3 (const flowvec3 &)
float & operator[] (unsigned)
 returns an element of the vector
flowvec3operator= (const flowvec3 &)
 assignment operator
flowvec3operator+= (const flowvec3 &)
 adds the input vector to this one
flowvec3operator-= (const flowvec3 &)
 subtracts the input vector from this one
flowvec3operator*= (float)
 scales this vector with the scalar
flowvec3operator/= (float)
 scales this vector with the inverse of the scalar
const flowvec3 operator+ (const flowvec3 &) const
 adds two vectors
const flowvec3 operator- (const flowvec3 &) const
 subtracts two vectors
const flowvec3 operator* (float) const
 scales the vector with the scalar
const flowvec3 operator/ (float) const
 scales the vector with the inverse of the scalar
bool operator== (const flowvec3 &) const
 returns true if the vectors are equal
bool operator!= (const flowvec3 &) const
 returns true if the vectors differ in at least one component
flowvec3operator- ()
 opposite vector
float norm () const
 norm of the vector (length*length)
float length () const
 length of the vector
flowvec3operator! ()
 normalizes the vector
float dist2 (const flowvec3 &)
 norm of the vectors' difference (dist*dist)
float dist (const flowvec3 &)
 length of the vectors' difference
float operator* (const flowvec3 &) const
 dot product
const flowvec3 operator^ (const flowvec3 &) const
 cross product
void print ()
 print the vector components

Public Attributes

float v [3]
 our vector data


Constructor & Destructor Documentation

flowvec3::flowvec3 (  ) 

flowvec3::flowvec3 ( float  x,
float  y,
float  z = 0.0f 
)

flowvec3::flowvec3 ( const float *  u  ) 

flowvec3::flowvec3 ( const flowvec3 u  ) 

flowvec3::flowvec3 (  ) 

flowvec3::flowvec3 ( float  x,
float  y,
float  z = 0.0f 
)

flowvec3::flowvec3 ( const float *  u  ) 

flowvec3::flowvec3 ( const flowvec3  ) 


Member Function Documentation

float flowvec3::dist ( const flowvec3  ) 

length of the vectors' difference

float flowvec3::dist ( const flowvec3 u  ) 

length of the vectors' difference

float flowvec3::dist2 ( const flowvec3  ) 

norm of the vectors' difference (dist*dist)

float flowvec3::dist2 ( const flowvec3 u  ) 

norm of the vectors' difference (dist*dist)

float flowvec3::length (  )  const

length of the vector

float flowvec3::length (  )  const [inline]

length of the vector

float flowvec3::norm (  )  const

norm of the vector (length*length)

float flowvec3::norm (  )  const [inline]

norm of the vector (length*length)

flowvec3& flowvec3::operator! (  ) 

normalizes the vector

flowvec3 & flowvec3::operator! (  ) 

normalizes the vector

bool flowvec3::operator!= ( const flowvec3  )  const

returns true if the vectors differ in at least one component

bool flowvec3::operator!= ( const flowvec3 u  )  const

returns true if the vectors differ in at least one component

float flowvec3::operator* ( const flowvec3  )  const

dot product

const flowvec3 flowvec3::operator* ( float   )  const

scales the vector with the scalar

float flowvec3::operator* ( const flowvec3 u  )  const [inline]

dot product

const flowvec3 flowvec3::operator* ( float  t  )  const

scales the vector with the scalar

flowvec3& flowvec3::operator*= ( float   ) 

scales this vector with the scalar

flowvec3 & flowvec3::operator*= ( float  t  ) 

scales this vector with the scalar

const flowvec3 flowvec3::operator+ ( const flowvec3  )  const

adds two vectors

const flowvec3 flowvec3::operator+ ( const flowvec3 u  )  const

adds two vectors

flowvec3& flowvec3::operator+= ( const flowvec3  ) 

adds the input vector to this one

flowvec3 & flowvec3::operator+= ( const flowvec3 u  ) 

adds the input vector to this one

flowvec3& flowvec3::operator- (  ) 

opposite vector

const flowvec3 flowvec3::operator- ( const flowvec3  )  const

subtracts two vectors

flowvec3 & flowvec3::operator- (  ) 

opposite vector

const flowvec3 flowvec3::operator- ( const flowvec3 u  )  const

subtracts two vectors

flowvec3& flowvec3::operator-= ( const flowvec3  ) 

subtracts the input vector from this one

flowvec3 & flowvec3::operator-= ( const flowvec3 u  ) 

subtracts the input vector from this one

const flowvec3 flowvec3::operator/ ( float   )  const

scales the vector with the inverse of the scalar

const flowvec3 flowvec3::operator/ ( float  t  )  const

scales the vector with the inverse of the scalar

flowvec3& flowvec3::operator/= ( float   ) 

scales this vector with the inverse of the scalar

flowvec3 & flowvec3::operator/= ( float  t  ) 

scales this vector with the inverse of the scalar

flowvec3& flowvec3::operator= ( const flowvec3  ) 

assignment operator

flowvec3 & flowvec3::operator= ( const flowvec3 u  ) 

assignment operator

bool flowvec3::operator== ( const flowvec3  )  const

returns true if the vectors are equal

bool flowvec3::operator== ( const flowvec3 u  )  const

returns true if the vectors are equal

float& flowvec3::operator[] ( unsigned   ) 

returns an element of the vector

float & flowvec3::operator[] ( unsigned  i  ) 

returns an element of the vector

const flowvec3 flowvec3::operator^ ( const flowvec3  )  const

cross product

const flowvec3 flowvec3::operator^ ( const flowvec3 u  )  const

cross product

void flowvec3::print (  ) 

print the vector components

void flowvec3::print (  ) 

print the vector components


Member Data Documentation

float flowvec3::v

our vector data


The documentation for this class was generated from the following files:

Generated on Tue Jan 20 23:44:13 2009 for FlowVis by  doxygen 1.5.7.1