PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::ConvexHull Class Reference

Convex hull. More...

#include <playrho/d2/ConvexHull.hpp>

Public Member Functions

DistanceProxy GetDistanceProxy () const
 Gets the distance proxy for this convex hull.
 
NonNegative< LengthGetVertexRadius () const noexcept
 Gets the vertex radius of this convex hull. More...
 
ConvexHullRotate (const UnitVec &value)
 Rotates all the vertices by the given amount.
 
ConvexHullScale (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...
 
ConvexHullTranslate (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.
 

Detailed Description

Convex hull.

Member Function Documentation

◆ GetVertexRadius()

NonNegative<Length> playrho::d2::ConvexHull::GetVertexRadius ( ) const
inlinenoexcept

Gets the vertex radius of this convex hull.

Returns
Non-negative distance.
See also
SetVertexRadius.

◆ SetVertexRadius()

void playrho::d2::ConvexHull::SetVertexRadius ( NonNegative< Length value)
inlinenoexcept

Sets the vertex radius of this convex hull.

See also
GetVertexRadius.

The documentation for this class was generated from the following files: