1 #ifndef REPRESENTATION_GEOMETRIC_BASIC_HALFSPACE_H 2 #define REPRESENTATION_GEOMETRIC_BASIC_HALFSPACE_H 68 [[nodiscard]] Eigen::VectorXd
normal()
const;
73 [[nodiscard]]
double offset()
const;
85 [[nodiscard]]
bool contains(
const Eigen::VectorXd& coordinate)
const;
91 [[nodiscard]]
bool holds(
const Point& point)
const;
97 [[nodiscard]]
bool holds(
const Eigen::VectorXd& coordinate)
const;
105 bool intersect(
const Eigen::VectorXd& lhsEndPoint,
106 const Eigen::VectorXd& rhsEndPoint,
107 Eigen::VectorXd& intersection)
const;
146 #endif //REPRESENTATION_GEOMETRIC_BASIC_HALFSPACE_H Eigen::VectorXd normal_
normal of the half space which defined by normal * x + offset <= 0
Definition: halfSpace.h:14
std::ostream & operator<<(std::ostream &out, const Condition &rhs)
output the right hand side condition to the standard out stream
Definition: condition.cpp:246
HalfSpace()
default constructor
Definition: halfSpace.cpp:7
HalfSpace & operator=(const HalfSpace &halfSpace)=default
assignment operator
double offset() const
get the offset of the half space
Definition: halfSpace.cpp:29
HalfSpace & operator-()
reverse the normal of the half space
Definition: halfSpace.cpp:69
int dimension() const
get the dimension of the half space
Definition: halfSpace.cpp:25
HalfSpace & reverse()
reverse the normal the of the half space
Definition: halfSpace.cpp:76
bool holds(const Point &point) const
check if the given point on the boundary of the half space or not
Definition: halfSpace.cpp:35
Definition: condition.cpp:3
static HalfSpace Empty(std::size_t dimension=0)
static constructor of Empty half space object
Definition: halfSpace.cpp:5
Eigen::VectorXd normal() const
get the normal of the half space
Definition: halfSpace.cpp:27
double offset_
offset used to define the half space
Definition: halfSpace.h:18
bool intersect(const Eigen::VectorXd &lhsEndPoint, const Eigen::VectorXd &rhsEndPoint, Eigen::VectorXd &intersection) const
check if the line segment between two points intersect with the half space or not ...
Definition: halfSpace.cpp:45
Definition: halfSpace.h:8
bool contains(const Point &point) const
check if the given point inside the half space or not
Definition: halfSpace.cpp:31
virtual ~HalfSpace()=default
destructor