Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Point Class Reference

A point class. More...

#include <Point.h>

List of all members.

Public Member Functions

double abs ()
Point cross (Point Other)
double dot (Point Other)
void normalize ()
Overloaded Operators
Point operator * (const double factor)
void operator *= (const double factor)
void operator *= (const int factor)
bool operator!= (const Point &other)
Point operator+ (const Point &other)
void operator+= (const Point &other)
Point operator- (const Point &other) const
Point operator- (const Point &other)
Point operator- () const
Point operator/ (const double divisor)
void operator/= (const double divisor)
void operator/= (const int divisor)
Pointoperator= (const Point &other)
bool operator== (const Point &other)
Constructors and Destructor
 Point (const Point &newpoint)
 Point (unsigned int newx, unsigned int newy, unsigned int newz)
 Point (int newx, int newy, int newz)
 Point (double newx, double newy, double newz)
 Point ()
virtual ~Point ()
Getters
double & x ()
int xint () const
double & y ()
int yint () const
double & z ()
int zint () const

Static Public Member Functions

Point TransMatMultiply (double *transMat, Point inPoint)

Protected Attributes

double _x
double _y
double _z


Detailed Description

A point class.

Author:
Hari Sundar

Definition at line 35 of file Point.h.


Constructor & Destructor Documentation

Point::Point  ) 
 

Definition at line 22 of file Point.C.

Referenced by operator *(), operator+(), operator-(), and operator/().

Point::~Point  )  [virtual]
 

Definition at line 45 of file Point.C.

Point::Point double  newx,
double  newy,
double  newz
 

Definition at line 26 of file Point.C.

Point::Point int  newx,
int  newy,
int  newz
 

Definition at line 30 of file Point.C.

Point::Point unsigned int  newx,
unsigned int  newy,
unsigned int  newz
 

Definition at line 35 of file Point.C.

Point::Point const Point newpoint  ) 
 

Definition at line 40 of file Point.C.


Member Function Documentation

double Point::abs  )  [inline]
 

Definition at line 92 of file Point.h.

Referenced by normalize().

Point Point::cross Point  Other  )  [inline]
 

Definition at line 87 of file Point.h.

References _x, _y, and _z.

double Point::dot Point  Other  )  [inline]
 

Definition at line 83 of file Point.h.

References _x, _y, and _z.

void Point::normalize  ) 
 

Definition at line 128 of file Point.C.

References _x, _y, _z, and abs().

Point Point::operator * const double  factor  ) 
 

Definition at line 109 of file Point.C.

References _x, _y, _z, and Point().

void Point::operator *= const double  factor  ) 
 

Definition at line 59 of file Point.C.

References _x, _y, and _z.

void Point::operator *= const int  factor  ) 
 

Definition at line 53 of file Point.C.

References _x, _y, and _z.

bool Point::operator!= const Point other  )  [inline]
 

Definition at line 78 of file Point.h.

References xint(), yint(), and zint().

Point Point::operator+ const Point other  ) 
 

Definition at line 93 of file Point.C.

References _x, _y, _z, and Point().

void Point::operator+= const Point other  ) 
 

Definition at line 79 of file Point.C.

References _x, _y, and _z.

Point Point::operator- const Point other  )  const
 

Definition at line 89 of file Point.C.

References _x, _y, _z, and Point().

Point Point::operator- const Point other  ) 
 

Definition at line 85 of file Point.C.

References _x, _y, _z, and Point().

Point Point::operator-  )  const
 

Definition at line 49 of file Point.C.

References _x, _y, _z, and Point().

Point Point::operator/ const double  divisor  ) 
 

Definition at line 104 of file Point.C.

References _x, _y, _z, and Point().

void Point::operator/= const double  divisor  ) 
 

Definition at line 72 of file Point.C.

References _x, _y, and _z.

void Point::operator/= const int  divisor  ) 
 

Definition at line 65 of file Point.C.

References _x, _y, and _z.

Point & Point::operator= const Point other  ) 
 

Definition at line 97 of file Point.C.

References _x, _y, and _z.

bool Point::operator== const Point other  )  [inline]
 

Definition at line 80 of file Point.h.

References xint(), yint(), and zint().

Point Point::TransMatMultiply double *  transMat,
Point  inPoint
[static]
 

Definition at line 114 of file Point.C.

References _x, _y, and _z.

double& Point::x  )  [inline]
 

Definition at line 51 of file Point.h.

Referenced by ot::DA::getNextOffset(), ot::DA::incrementCurrentOffset(), ot::interpolateData(), and main().

int Point::xint  )  const [inline]
 

Definition at line 55 of file Point.h.

Referenced by CalculateCenters(), ComputeElasticityRHS(), ComputeError5(), ComputeFBM2_RHS_Part1(), ComputeFBM2_RHS_Part2(), ComputeFBM_RHS_Part1(), ComputeFBM_RHS_Part2(), ComputeFBM_RHS_Part3(), ComputeRHS1(), ComputeRHS2(), ComputeRHS5(), ComputeRHS7(), ComputeRHS8(), ComputeRHS9(), ComputeSol(), EnforceZeroFBM(), EnforceZeroFBM2(), ot::DA::getChildNumber(), ot::DA::getNextOffset(), ot::DA::getNodeIndices(), ot::DA::incrementCurrentOffset(), ot::DA::incrementPreGhostOffset(), InitializeData(), ot::interpolateData(), ot::DA::isBoundaryOctant(), main(), operator!=(), operator==(), SetSolution5(), SetSolutionFBM(), and SetSolutionFBM2().

double& Point::y  )  [inline]
 

Definition at line 52 of file Point.h.

Referenced by ot::DA::getNextOffset(), ot::DA::incrementCurrentOffset(), ot::interpolateData(), and main().

int Point::yint  )  const [inline]
 

Definition at line 56 of file Point.h.

Referenced by CalculateCenters(), ComputeElasticityRHS(), ComputeError5(), ComputeFBM2_RHS_Part1(), ComputeFBM2_RHS_Part2(), ComputeFBM_RHS_Part1(), ComputeFBM_RHS_Part2(), ComputeFBM_RHS_Part3(), ComputeRHS1(), ComputeRHS2(), ComputeRHS5(), ComputeRHS7(), ComputeRHS8(), ComputeRHS9(), ComputeSol(), EnforceZeroFBM(), EnforceZeroFBM2(), ot::DA::getChildNumber(), ot::DA::getNextOffset(), ot::DA::getNodeIndices(), ot::DA::incrementCurrentOffset(), ot::DA::incrementPreGhostOffset(), InitializeData(), ot::interpolateData(), ot::DA::isBoundaryOctant(), main(), operator!=(), operator==(), SetSolution5(), SetSolutionFBM(), and SetSolutionFBM2().

double& Point::z  )  [inline]
 

Definition at line 53 of file Point.h.

Referenced by ot::DA::getNextOffset(), ot::DA::incrementCurrentOffset(), ot::interpolateData(), and main().

int Point::zint  )  const [inline]
 

Definition at line 57 of file Point.h.

Referenced by CalculateCenters(), ComputeElasticityRHS(), ComputeError5(), ComputeFBM2_RHS_Part1(), ComputeFBM2_RHS_Part2(), ComputeFBM_RHS_Part1(), ComputeFBM_RHS_Part2(), ComputeFBM_RHS_Part3(), ComputeRHS1(), ComputeRHS2(), ComputeRHS5(), ComputeRHS7(), ComputeRHS8(), ComputeRHS9(), ComputeSol(), EnforceZeroFBM(), EnforceZeroFBM2(), ot::DA::getChildNumber(), ot::DA::getNextOffset(), ot::DA::getNodeIndices(), ot::DA::incrementCurrentOffset(), ot::DA::incrementPreGhostOffset(), InitializeData(), ot::interpolateData(), ot::DA::isBoundaryOctant(), main(), operator!=(), operator==(), SetSolution5(), SetSolutionFBM(), and SetSolutionFBM2().


Member Data Documentation

double Point::_x [protected]
 

Definition at line 100 of file Point.h.

Referenced by cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator/(), operator/=(), operator=(), and TransMatMultiply().

double Point::_y [protected]
 

Definition at line 101 of file Point.h.

Referenced by cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator/(), operator/=(), operator=(), and TransMatMultiply().

double Point::_z [protected]
 

Definition at line 102 of file Point.h.

Referenced by cross(), dot(), normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator/(), operator/=(), operator=(), and TransMatMultiply().


The documentation for this class was generated from the following files:
Generated on Tue Mar 24 16:14:18 2009 for DENDRO by  doxygen 1.3.9.1