Point represents a spatial point. More...
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] |
Point represents a spatial point.
Definition at line 45 of file SundancePoint.hpp.
| Sundance::Point::Point | ( | ) | [inline] |
Definition at line 112 of file SundancePoint.hpp.
| Sundance::Point::Point | ( | const double & | x | ) | [inline] |
Definition at line 116 of file SundancePoint.hpp.
References x_.
| Sundance::Point::Point | ( | const double & | x, |
| const double & | y | ||
| ) | [inline] |
Definition at line 122 of file SundancePoint.hpp.
References x_.
| Sundance::Point::Point | ( | const double & | x, |
| const double & | y, | ||
| const double & | z | ||
| ) | [inline] |
Definition at line 129 of file SundancePoint.hpp.
References x_.
| Sundance::Point::Point | ( | const Point & | other | ) | [inline] |
Definition at line 137 of file SundancePoint.hpp.
| void Point::boundsCheck | ( | int | i | ) | const [protected] |
| int Sundance::Point::dim | ( | ) | const [inline] |
Definition at line 56 of file SundancePoint.hpp.
References dim_.
Referenced by Sundance::PointCellPredicateFunctor::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(), and Sundance::MatlabWriter::write().
| double Sundance::Point::distance | ( | const Point & | x | ) | const [inline] |
Definition at line 290 of file SundancePoint.hpp.
Referenced by Sundance::Mesh::checkVertexConsistency(), and Sundance::BasicSimplicialMesh::getCellDiameters().
| double Sundance::Point::operator* | ( | const Point & | p | ) | const [inline] |
Definition at line 238 of file SundancePoint.hpp.
| Point Sundance::Point::operator* | ( | const double & | a | ) | const [inline] |
Definition at line 251 of file SundancePoint.hpp.
| Point & Sundance::Point::operator*= | ( | const double & | a | ) | [inline] |
Definition at line 200 of file SundancePoint.hpp.
| Point Sundance::Point::operator+ | ( | ) | const [inline] |
Definition at line 219 of file SundancePoint.hpp.
Definition at line 224 of file SundancePoint.hpp.
Definition at line 177 of file SundancePoint.hpp.
| Point Sundance::Point::operator- | ( | ) | const [inline] |
Definition at line 212 of file SundancePoint.hpp.
Definition at line 231 of file SundancePoint.hpp.
Definition at line 188 of file SundancePoint.hpp.
| Point Sundance::Point::operator/ | ( | const double & | a | ) | const [inline] |
Definition at line 258 of file SundancePoint.hpp.
| Point & Sundance::Point::operator/= | ( | const double & | a | ) | [inline] |
Definition at line 206 of file SundancePoint.hpp.
Definition at line 143 of file SundancePoint.hpp.
| const double & Sundance::Point::operator[] | ( | int | i | ) | const [inline] |
Definition at line 160 of file SundancePoint.hpp.
References boundsCheck(), and x_.
| double & Sundance::Point::operator[] | ( | int | i | ) | [inline] |
Definition at line 152 of file SundancePoint.hpp.
References boundsCheck(), and x_.
| void Sundance::Point::resize | ( | int | i | ) | [inline] |
Definition at line 168 of file SundancePoint.hpp.
References dim_.
Referenced by Sundance::FeketeQuadrature::integrateRegion(), and Sundance::RefinementTransformation::meshToRivara().
| std::string Sundance::Point::toString | ( | ) | const [inline] |
Definition at line 277 of file SundancePoint.hpp.
Referenced by Teuchos::toString().
| static bool Sundance::Point::unitTest | ( | ) | [static] |
int Sundance::Point::dim_ [protected] |
Definition at line 92 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 93 of file SundancePoint.hpp.
Referenced by operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), Point(), and toString().