Point3f Class Reference

#include <Point3f.h>

List of all members.

Public Member Functions

 Point3f (void)
 Point3f (float ax, float ay, float az)
 ~Point3f (void)
Point3foperator= (const Point3f &p)
Point3foperator+= (const Point3f &p)
Point3foperator *= (float s)
Point3f operator+ (const Point3f &p) const
Point3f operator * (float s) const
void convertToArray (float *arrayPoint)
void print ()

Public Attributes

float x
float y
float z


Detailed Description

This class represents a 3D point with float values.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
June 26, 2007


Constructor & Destructor Documentation

Point3f::Point3f ( void   ) 

Constructs a 3D point with float elements with initial value equal to zero.

Point3f::Point3f ( float  ax,
float  ay,
float  az 
)

Constructs a 3D point with float values as given by the arguments.

Parameters:
ax the x-coordinate value.
ay the y-coordinate value.
az the z-coordinate value.

Point3f::~Point3f ( void   ) 

Destroys this point object.


Member Function Documentation

Point3f& Point3f::operator= ( const Point3f p  )  [inline]

Assignment operator.

Parameters:
p the Point3f object whose values will be assigned to this one.

Point3f& Point3f::operator+= ( const Point3f p  )  [inline]

Adds the point p to the current point.

Parameters:
p the point to be added to this one.

Point3f& Point3f::operator *= ( float  s  )  [inline]

Multiples this point by the value s.

Parameters:
s the value to be multiplied by this points.

Point3f Point3f::operator+ ( const Point3f p  )  const [inline]

Returns the result of adding the point p to the current point.

Parameters:
p the point to be added to this one.
Returns:
the resulting of adding this point to p.

Point3f Point3f::operator * ( float  s  )  const [inline]

Returns the result of multiplying this point by the scalar s.

Parameters:
s the scalar value to multiplied by this point.
Returns:
the resulting of multiplying this point by s.

void Point3f::convertToArray ( float *  arrayPoint  )  [inline]

Converts the contents of this point into an array of 3 floats.

Parameters:
arrayPoint the array of 3 floats where the contents of this point will be placed.

void Point3f::print (  ) 

Prints this point on the console for debugging purposes.


Member Data Documentation

float Point3f::x

The x-coordinate of this point.

float Point3f::y

The y-coordinate of this point.

float Point3f::z

The z-coordinate of this point.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:43:50 2007 for LargeDisplayFramework by  doxygen 1.5.2