libMesh
|
Represents a fixed point constraint. More...
#include <variational_smoother_constraint.h>
Public Member Functions | |
PointConstraint ()=default | |
PointConstraint (const Point &point, const Real &tol=TOLERANCE *TOLERANCE) | |
Constructor. More... | |
bool | operator< (const PointConstraint &other) const |
Comparison operator for ordering PointConstraint objects. More... | |
bool | operator== (const PointConstraint &other) const |
Equality operator. More... | |
bool | contains_point (const PointConstraint &p) const |
Query whether a point lies on another point. More... | |
ConstraintVariant | intersect (const ConstraintVariant &other) const |
Computes the intersection of this point with another constraint. More... | |
const Point & | point () const |
Const getter for the _point attribute. More... | |
const Real & | tol () const |
Const getter for the _tol attribute. More... | |
Private Attributes | |
Point | _point |
Location of constraint. More... | |
Real | _tol |
Tolerance to use for numerical comparisons. More... | |
Represents a fixed point constraint.
Definition at line 49 of file variational_smoother_constraint.h.
|
default |
libMesh::PointConstraint::PointConstraint | ( | const Point & | point, |
const Real & | tol = TOLERANCE * TOLERANCE |
||
) |
Constructor.
point | The point defining the constraint. |
tol | The tolerance to use for numerical comparisons. |
Definition at line 48 of file variational_smoother_constraint.C.
|
inline |
Query whether a point lies on another point.
p | The point in question |
Definition at line 84 of file variational_smoother_constraint.h.
ConstraintVariant libMesh::PointConstraint::intersect | ( | const ConstraintVariant & | other | ) | const |
Computes the intersection of this point with another constraint.
Handles intersection with PointConstraint, LineConstraint, or PlaneConstraint.
other | The constraint to intersect with. |
Definition at line 65 of file variational_smoother_constraint.C.
bool libMesh::PointConstraint::operator< | ( | const PointConstraint & | other | ) | const |
Comparison operator for ordering PointConstraint objects.
A PointConstraint is considered less than another if its location is lexicographically less than the other's location.
other | The PointConstraint to compare with. |
tol | The tolerance to use for numerical comparisons. |
Definition at line 52 of file variational_smoother_constraint.C.
References _point, and point().
bool libMesh::PointConstraint::operator== | ( | const PointConstraint & | other | ) | const |
Equality operator.
other | The PointConstraint to compare with. |
Definition at line 60 of file variational_smoother_constraint.C.
References _point, _tol, libMesh::TypeVector< T >::absolute_fuzzy_equals(), and point().
|
inline |
Const getter for the _point attribute.
Definition at line 100 of file variational_smoother_constraint.h.
References _point.
Referenced by libMesh::LineConstraint::contains_point(), libMesh::PlaneConstraint::contains_point(), libMesh::PlaneConstraint::intersect(), operator<(), and operator==().
|
inline |
Const getter for the _tol attribute.
Definition at line 105 of file variational_smoother_constraint.h.
References _tol.
|
private |
Location of constraint.
Definition at line 112 of file variational_smoother_constraint.h.
Referenced by operator<(), operator==(), and point().
|
private |
Tolerance to use for numerical comparisons.
Definition at line 117 of file variational_smoother_constraint.h.
Referenced by operator==(), and tol().