Definition of the EdgeShapeConf
class and closely related code.
More...
#include <array>
#include <playrho/InvalidArgument.hpp>
#include <playrho/NonNegative.hpp>
#include <playrho/Real.hpp>
#include <playrho/Settings.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/UnitVec.hpp>
Classes | |
struct | playrho::d2::EdgeShapeConf |
Edge shape configuration. More... | |
struct | playrho::detail::TypeInfo< playrho::d2::EdgeShapeConf > |
Type info specialization for playrho::d2::EdgeShapeConf . More... | |
Namespaces | |
playrho | |
playrho::d2 | |
Functions | |
DistanceProxy | playrho::d2::GetChild (const EdgeShapeConf &arg, ChildCounter index) |
Gets the "child" shape for the given shape configuration. | |
constexpr ChildCounter | playrho::d2::GetChildCount (const EdgeShapeConf &) noexcept |
Gets the "child" count for the given shape configuration. More... | |
MassData | playrho::d2::GetMassData (const EdgeShapeConf &arg) |
Gets the mass data for the given shape configuration. | |
NonNegative< Length > | playrho::d2::GetVertexRadius (const EdgeShapeConf &arg) noexcept |
Gets the vertex radius of the given shape configuration. | |
NonNegative< Length > | playrho::d2::GetVertexRadius (const EdgeShapeConf &arg, ChildCounter) noexcept |
Gets the vertex radius of the given shape configuration. | |
bool | playrho::d2::operator!= (const EdgeShapeConf &lhs, const EdgeShapeConf &rhs) noexcept |
Inequality operator. | |
bool | playrho::d2::operator== (const EdgeShapeConf &lhs, const EdgeShapeConf &rhs) noexcept |
Equality operator. | |
void | playrho::d2::Rotate (EdgeShapeConf &arg, const UnitVec &value) noexcept |
Rotates the given shape's vertices by the given amount. | |
void | playrho::d2::Scale (EdgeShapeConf &arg, const Vec2 &value) noexcept |
Scales the given shape's vertices by the given amount. | |
void | playrho::d2::SetVertexRadius (EdgeShapeConf &arg, ChildCounter, NonNegative< Length > value) |
Sets the vertex radius of the shape for the given index. | |
void | playrho::d2::SetVertexRadius (EdgeShapeConf &arg, NonNegative< Length > value) |
Sets the vertex radius of the shape. | |
void | playrho::d2::Translate (EdgeShapeConf &arg, const Length2 &value) noexcept |
Translates the given shape's vertices by the given amount. | |
Definition of the EdgeShapeConf
class and closely related code.