|
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.
|
|
Definition of the ChainShapeConf
class and closely related code.