hp2D::SingularVertex Class Reference
Class for storing a singular vertex with the coordinates. More...
#include <singularSet.hh>
Public Member Functions | |
Real | distance (concepts::Real2d point) const |
Returns the square of the distance from the vertex to the point (in physical coordinates) More... | |
Real | distance (concepts::Real2d point, const Quad< Real > *elm) const |
Returns the distance from the vertex to a point inside an Quad (point in reference coordinates) More... | |
SingularVertex (const concepts::Connector0 *vertex, const concepts::Real2d vtx0) | |
Constructor. More... | |
const concepts::Connector0 * | vertex () const |
Returns a pointer to the vertex object (topological, connector) More... | |
Private Attributes | |
const concepts::Connector0 * | vertex_ |
Pointer to the vertex object (topological, connector) More... | |
const concepts::Real2d | vtx0_ |
Coordinates of the vertex. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SingularVertex &s) |
Detailed Description
Class for storing a singular vertex with the coordinates.
The class also provides methods to compute a distance from a given point (in local coordinates in an element) to the vertex. The returned result is the square of the Euclidiean distance.
Definition at line 28 of file singularSet.hh.
Constructor & Destructor Documentation
◆ SingularVertex()
|
inline |
Constructor.
- Parameters
-
vertex Vertex object vtx0 Coordinates of the vertex
Definition at line 35 of file singularSet.hh.
Member Function Documentation
◆ distance() [1/2]
Real hp2D::SingularVertex::distance | ( | concepts::Real2d | point | ) | const |
Returns the square of the distance from the vertex to the point
(in physical coordinates)
◆ distance() [2/2]
|
inline |
Returns the distance from the vertex to a point
inside an Quad (point in reference coordinates)
Definition at line 47 of file singularSet.hh.
◆ vertex()
|
inline |
Returns a pointer to the vertex object (topological, connector)
Definition at line 39 of file singularSet.hh.
Friends And Related Function Documentation
◆ operator<<
|
friend |
Member Data Documentation
◆ vertex_
|
private |
Pointer to the vertex object (topological, connector)
Definition at line 52 of file singularSet.hh.
◆ vtx0_
|
private |
Coordinates of the vertex.
Definition at line 54 of file singularSet.hh.
The documentation for this class was generated from the following file:
- hp2D/singularSet.hh