Public Member Functions | |
Point () | |
Point (const double &x) | |
Point (const double &x, const double &y) | |
Point (const double &x, const double &y, const double &z) | |
Point (const Point &other) | |
Point & | operator= (const Point &other) |
int | dim () const |
double & | operator[] (int i) |
const double & | operator[] (int i) const |
void | resize (int i) |
Point & | operator+= (const Point &p) |
Point & | operator-= (const Point &p) |
Point & | operator*= (const double &a) |
Point & | operator/= (const double &a) |
Point | operator+ () const |
Point | operator- () const |
Point | operator+ (const Point &p) const |
Point | operator- (const Point &p) const |
double | operator* (const Point &p) const |
Point | operator* (const double &a) const |
Point | operator/ (const double &a) const |
double | distance (const Point &x) const |
std::string | toString () const |
Static Public Member Functions | |
static bool | unitTest () |
Protected Member Functions | |
void | boundsCheck (int i) const |
Protected Attributes | |
int | dim_ |
double | x_ [3] |
Definition at line 46 of file SundancePoint.hpp.
Sundance::Point::Point | ( | ) | [inline] |
Definition at line 113 of file SundancePoint.hpp.
Sundance::Point::Point | ( | const double & | x | ) | [inline] |
Sundance::Point::Point | ( | const double & | x, | |
const double & | y | |||
) | [inline] |
Sundance::Point::Point | ( | const double & | x, | |
const double & | y, | |||
const double & | z | |||
) | [inline] |
Sundance::Point::Point | ( | const Point & | other | ) | [inline] |
void Point::boundsCheck | ( | int | i | ) | const [protected] |
int Sundance::Point::dim | ( | ) | const [inline] |
Definition at line 57 of file SundancePoint.hpp.
References dim_.
Referenced by Sundance::PointCellPredicateFunctor::operator()(), Sundance::SloppyPointComparitor::operator()(), operator*(), Sundance::ADReal::operator*=(), operator+=(), Sundance::ADReal::operator+=(), Sundance::ADReal::operator-(), operator-=(), Sundance::ADReal::operator-=(), Sundance::ADReal::operator/=(), std::operator<<(), Sundance::ADReal::reciprocate(), toString(), Sundance::MatlabWriter::write(), and Sundance::DSVWriter::write().
double Sundance::Point::distance | ( | const Point & | x | ) | const [inline] |
Definition at line 291 of file SundancePoint.hpp.
Referenced by Sundance::UniformRefinementPair::check(), Sundance::Mesh::checkVertexConsistency(), and Sundance::BasicSimplicialMesh::getCellDiameters().
Point Sundance::Point::operator* | ( | const double & | a | ) | const [inline] |
Definition at line 252 of file SundancePoint.hpp.
double Sundance::Point::operator* | ( | const Point & | p | ) | const [inline] |
Point & Sundance::Point::operator*= | ( | const double & | a | ) | [inline] |
Definition at line 225 of file SundancePoint.hpp.
Point Sundance::Point::operator+ | ( | ) | const [inline] |
Definition at line 220 of file SundancePoint.hpp.
Definition at line 232 of file SundancePoint.hpp.
Point Sundance::Point::operator- | ( | ) | const [inline] |
Point Sundance::Point::operator/ | ( | const double & | a | ) | const [inline] |
Definition at line 259 of file SundancePoint.hpp.
Point & Sundance::Point::operator/= | ( | const double & | a | ) | [inline] |
const double & Sundance::Point::operator[] | ( | int | i | ) | const [inline] |
double & Sundance::Point::operator[] | ( | int | i | ) | [inline] |
void Sundance::Point::resize | ( | int | i | ) | [inline] |
Definition at line 169 of file SundancePoint.hpp.
References dim_.
Referenced by Sundance::GaussLobattoQuadrature::getAdaptedQuadWeights(), Sundance::GaussLobattoQuadrature::getAdaptedQuadWeights_polygon(), Sundance::GaussLobattoQuadrature::getAdaptedQuadWeights_surf(), Sundance::CurveIntegralCalc::getCurveQuadPoints_polygon(), Sundance::FeketeQuadrature::integrateRegion(), and Sundance::RefinementTransformation::meshToRivara().
std::string Sundance::Point::toString | ( | ) | const [inline] |
static bool Sundance::Point::unitTest | ( | ) | [static] |
int Sundance::Point::dim_ [protected] |
Definition at line 93 of file SundancePoint.hpp.
Referenced by boundsCheck(), dim(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), Point(), and resize().
double Sundance::Point::x_[3] [protected] |
Definition at line 94 of file SundancePoint.hpp.
Referenced by operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), Point(), and toString().