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

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

#include <cassert>
#include <vector>
#include <playrho/NonNegative.hpp>
#include <playrho/Templates.hpp>
#include <playrho/TypeInfo.hpp>
#include <playrho/d2/ShapeConf.hpp>
#include <playrho/d2/DistanceProxy.hpp>
#include <playrho/d2/MassData.hpp>
#include <playrho/d2/Math.hpp>
#include <playrho/d2/AABB.hpp>
Include dependency graph for ChainShapeConf.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  playrho::d2::ChainShapeConf
 Chain shape configuration. More...
 
struct  playrho::detail::TypeInfo< playrho::d2::ChainShapeConf >
 Type info specialization for playrho::d2::ChainShapeConf. More...
 
class  playrho::d2::ChainShapeConf::VerticesWithNormals
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

ChainShapeConf playrho::d2::GetChainShapeConf (const AABB &arg)
 Gets an enclosing chain shape configuration for the given axis aligned box.
 
ChainShapeConf playrho::d2::GetChainShapeConf (const Length2 &dimensions)
 Gets an enclosing chain shape configuration for an axis aligned rectangle of the given dimensions (width and height).
 
ChainShapeConf playrho::d2::GetChainShapeConf (Length dimension)
 Gets an enclosing chain shape configuration for an axis aligned square of the given dimension.
 
DistanceProxy playrho::d2::GetChild (const ChainShapeConf &arg, ChildCounter index)
 Gets the "child" shape for a given chain shape configuration.
 
ChildCounter playrho::d2::GetChildCount (const ChainShapeConf &arg) noexcept
 Gets the child count for a given chain shape configuration.
 
MassData playrho::d2::GetMassData (const ChainShapeConf &arg)
 Gets the mass data for a given chain shape configuration.
 
ChildCounter playrho::d2::GetNextIndex (const ChainShapeConf &shape, ChildCounter index) noexcept
 Gets the next index after the given index for the given shape.
 
NonNegative< Length > playrho::d2::GetVertexRadius (const ChainShapeConf &arg) noexcept
 Gets the vertex radius of the given shape configuration.
 
NonNegative< Length > playrho::d2::GetVertexRadius (const ChainShapeConf &arg, ChildCounter) noexcept
 Gets the vertex radius of the given shape configuration.
 
bool playrho::d2::IsLooped (const ChainShapeConf &shape) noexcept
 Determines whether the given shape is looped.
 
void playrho::d2::Rotate (ChainShapeConf &arg, const UnitVec &value)
 Rotates the given shape's vertices by the given amount.
 
void playrho::d2::Scale (ChainShapeConf &arg, const Vec2 &value)
 Scales the given shape's vertices by the given amount.
 
void playrho::d2::SetVertexRadius (ChainShapeConf &arg, ChildCounter, NonNegative< Length > value) noexcept
 Sets the vertex radius of the shape for the given index.
 
void playrho::d2::SetVertexRadius (ChainShapeConf &arg, NonNegative< Length > value) noexcept
 Sets the vertex radius of the shape.
 
void playrho::d2::Translate (ChainShapeConf &arg, const Length2 &value)
 Translates the given shape's vertices by the given amount.
 

Detailed Description

Definition of the ChainShapeConf class and closely related code.