PlayRho  2.0.0
An interactive physics engine & library.
PolygonShapeConf.hpp File Reference

Definition of the PolygonShapeConf class and closely related code. More...

#include <cassert>
#include <type_traits>
#include <vector>
#include <playrho/InvalidArgument.hpp>
#include <playrho/Matrix.hpp>
#include <playrho/NonNegative.hpp>
#include <playrho/Settings.hpp>
#include <playrho/Span.hpp>
#include <playrho/Units.hpp>
#include <playrho/Vector2.hpp>
#include <playrho/detail/Templates.hpp>
#include <playrho/detail/TypeInfo.hpp>
#include <playrho/d2/DistanceProxy.hpp>
#include <playrho/d2/MassData.hpp>
#include <playrho/d2/NgonWithFwdNormals.hpp>
#include <playrho/d2/ShapeConf.hpp>
#include <playrho/d2/Transformation.hpp>
#include <playrho/d2/UnitVec.hpp>
#include <playrho/d2/VertexSet.hpp>
Include dependency graph for PolygonShapeConf.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  playrho::d2::PolygonShapeConf
 An n-vertex convex polygon shaped part eligible for use with a Shape. More...
 
struct  playrho::detail::TypeInfo< playrho::d2::PolygonShapeConf >
 Type info specialization for playrho::d2::PolygonShapeConf. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

DistanceProxy playrho::d2::GetChild (const PolygonShapeConf &arg, ChildCounter index)
 Gets the "child" shape for the given shape configuration.
 
constexpr ChildCounter playrho::d2::GetChildCount (const PolygonShapeConf &) noexcept
 Gets the "child" count for the given shape configuration. More...
 
MassData playrho::d2::GetMassData (const PolygonShapeConf &arg)
 Gets the mass data for the given shape configuration.
 
NonNegative< Length > playrho::d2::GetVertexRadius (const PolygonShapeConf &arg) noexcept
 Gets the vertex radius of the given shape configuration.
 
NonNegative< Length > playrho::d2::GetVertexRadius (const PolygonShapeConf &arg, ChildCounter) noexcept
 Gets the vertex radius of the given shape configuration.
 
void playrho::d2::Rotate (PolygonShapeConf &arg, const UnitVec &value)
 Rotates the given shape configuration's vertices by the given amount.
 
void playrho::d2::Scale (PolygonShapeConf &arg, const Vec2 &value)
 Scales the given shape configuration's vertices by the given amount.
 
void playrho::d2::SetVertexRadius (PolygonShapeConf &arg, ChildCounter, NonNegative< Length > value)
 Sets the vertex radius of the shape for the given index.
 
void playrho::d2::SetVertexRadius (PolygonShapeConf &arg, NonNegative< Length > value)
 Sets the vertex radius of the shape.
 
void playrho::d2::Transform (PolygonShapeConf &arg, const Mat22 &m)
 Transforms the given polygon configuration's vertices by the given transformation matrix. More...
 
void playrho::d2::Translate (PolygonShapeConf &arg, const Length2 &value)
 Translates the given shape configuration's vertices by the given amount.
 
bool playrho::d2::Validate (const Span< const Length2 > &verts)
 Validates the convexity of the given collection of vertices. More...
 

Detailed Description

Definition of the PolygonShapeConf class and closely related code.