Convex hull. More...

#include <MultiShapeConf.hpp>

Public Member Functions

DistanceProxy GetDistanceProxy () const
 Gets the distance proxy for this convex hull. More...
 
NonNegative< LengthGetVertexRadius () const noexcept
 Gets the vertex radius of this convex hull. More...
 
ConvexHullTransform (const Mat22 &m) noexcept
 Transforms all the vertices by the given transformation matrix. More...
 

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. More...
 

Friends

bool operator== (const ConvexHull &lhs, const ConvexHull &rhs) noexcept
 Equality operator. More...
 
bool operator!= (const ConvexHull &lhs, const ConvexHull &rhs) noexcept
 Inequality operator. More...
 

Detailed Description

Convex hull.

Definition at line 36 of file MultiShapeConf.hpp.

Member Function Documentation

◆ Get()

ConvexHull playrho::d2::ConvexHull::Get ( const VertexSet pointSet,
NonNegative< Length vertexRadius = NonNegative<Length>{DefaultLinearSlop * Real{2}} 
)
static

Gets the convex hull for the given set of vertices.

Definition at line 54 of file MultiShapeConf.cpp.

◆ GetDistanceProxy()

DistanceProxy playrho::d2::ConvexHull::GetDistanceProxy ( ) const
inline

Gets the distance proxy for this convex hull.

Definition at line 45 of file MultiShapeConf.hpp.

◆ GetVertexRadius()

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

Gets the vertex radius of this convex hull.

Returns
Non-negative distance.

Definition at line 55 of file MultiShapeConf.hpp.

◆ Transform()

ConvexHull & playrho::d2::ConvexHull::Transform ( const Mat22 m)
noexcept

Transforms all the vertices by the given transformation matrix.

See also
https://en.wikipedia.org/wiki/Transformation_matrix

Definition at line 80 of file MultiShapeConf.cpp.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ConvexHull lhs,
const ConvexHull rhs 
)
friend

Equality operator.

Definition at line 65 of file MultiShapeConf.hpp.

◆ operator!=

bool operator!= ( const ConvexHull lhs,
const ConvexHull rhs 
)
friend

Inequality operator.

Definition at line 72 of file MultiShapeConf.hpp.


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