#include <recti/rpolygon.hpp>
template<typename T>
RPolygon class
Rectilinear Polygon.
Template parameters | |
---|---|
T |
RPolygon
is a class template that represents a rectilinear polygon. It stores the origin point and a vector of edges that define the polygon. The template parameter T
specifies the type of the coordinates of the points.
Constructors, destructors, conversion operators
Public functions
- auto operator+=(const Vector2<T>& vector) -> RPolygon & -> auto constexpr
- auto signed_area() const -> T -> auto constexpr
-
template<typename U>auto contains(const Point<U>& rhs) const -> bool -> auto
- auto lb() const -> Point< T > -> auto
- auto ub() const -> Point< T > -> auto
Function documentation
template<typename T>
auto recti:: RPolygon<T>:: operator+=(const Vector2<T>& vector) -> RPolygon & constexpr
Returns | constexpr Point& |
---|
template<typename T>
auto recti:: RPolygon<T>:: signed_area() const -> T constexpr
Returns | T |
---|