Convex hull. More...
#include <playrho/d2/ConvexHull.hpp>
Public Member Functions | |
DistanceProxy | GetDistanceProxy () const |
Gets the distance proxy for this convex hull. | |
NonNegative< Length > | GetVertexRadius () const noexcept |
Gets the vertex radius of this convex hull. More... | |
ConvexHull & | Rotate (const UnitVec &value) |
Rotates all the vertices by the given amount. | |
ConvexHull & | Scale (const Vec2 &value) |
Scales all the vertices by the given amount. | |
void | SetVertexRadius (NonNegative< Length > value) noexcept |
Sets the vertex radius of this convex hull. More... | |
ConvexHull & | Translate (const Length2 &value) |
Translates all the vertices by the given amount. | |
Static Public Member Functions | |
static ConvexHull | Get (const VertexSet &pointSet, NonNegative< Length > vertexRadius=NonNegative< Length >{DefaultLinearSlop *Real{2}}) |
Gets the convex hull for the given set of vertices. | |
Friends | |
bool | operator!= (const ConvexHull &lhs, const ConvexHull &rhs) noexcept |
Inequality operator. | |
bool | operator== (const ConvexHull &lhs, const ConvexHull &rhs) noexcept |
Equality operator. | |
Convex hull.
|
inlinenoexcept |
|
inlinenoexcept |
Sets the vertex radius of this convex hull.