Aim: A half-space specified by a vector N and a constant c. The half-space is the set \( \{ P \in Z^2, N.P \le c \} \).
More...
#include <DGtal/arithmetic/ClosedIntegerHalfPlane.h>
template<typename TSpace>
struct DGtal::ClosedIntegerHalfPlane< TSpace >
Aim: A half-space specified by a vector N and a constant c. The half-space is the set \( \{ P \in Z^2, N.P \le c \} \).
Description of template class 'ClosedIntegerHalfPlane'
A model of boost::DefaultConstructible, boost::CopyConstructible, boost::Assignable, concepts::CPointPredicate.
Definition at line 63 of file ClosedIntegerHalfPlane.h.
◆ Integer
template<typename TSpace >
◆ Point
template<typename TSpace >
◆ Self
template<typename TSpace >
◆ Space
template<typename TSpace >
◆ Vector
template<typename TSpace >
◆ ~ClosedIntegerHalfPlane()
template<typename TSpace >
◆ ClosedIntegerHalfPlane() [1/3]
template<typename TSpace >
◆ ClosedIntegerHalfPlane() [2/3]
template<typename TSpace >
Constructor from normal and constant.
- Parameters
-
aN | a vector that defines the normal direction to the half-plane. |
aC | the constant that defines the bound. |
◆ ClosedIntegerHalfPlane() [3/3]
template<typename TSpace >
Constructor. Computes the half-space of the form N.P<=c whose supporting line passes through A and B such that the point inP satisfies the constraint.
- Parameters
-
A | any point. |
B | any point different from A. |
inP | any point not on the straight line (AB). |
ic | any compatible integer computer. |
◆ BOOST_CONCEPT_ASSERT()
template<typename TSpace >
◆ isOnBoundary()
template<typename TSpace >
- Parameters
-
- Returns
- 'true' if p is on the boundary of the half-space (i.e. N.p == c ).
◆ isValid()
template<typename TSpace >
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ negate()
template<typename TSpace >
Negates the half-space. Only the boundary is common.
◆ operator()()
template<typename TSpace >
- Parameters
-
- Returns
- 'true' if p is inside the half-space (i.e. N.p <= c ).
◆ selfDisplay()
template<typename TSpace >
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ tangent()
template<typename TSpace >
- Returns
- the tangent vector to the half-plane boundary (ie. ( -N.y, N.x ) ).
template<typename TSpace >
template<typename TSpace >
The documentation for this struct was generated from the following file: