Static rectangle. More...
#include <playrho/d2/part/Compositor.hpp>
Public Member Functions | |
DistanceProxy | GetChild (ChildCounter index) const |
Gets the "child" shape for the given shape configuration. | |
ChildCounter | GetChildCount () const noexcept |
Gets the child count. More... | |
constexpr Length2 | GetDimensions () const noexcept |
Gets the dimensions of this rectangle. More... | |
MassData | GetMassData (NonNegative< AreaDensity > density) const noexcept |
Gets the mass data for the geometry. | |
const std::array< UnitVec, 4u > & | GetNormals () const noexcept |
Gets this rectangle's normals. More... | |
constexpr Length2 | GetOffset () const noexcept |
Gets the x and y offset of this rectangle. More... | |
constexpr NonNegative< Length > | GetVertexRadius () const noexcept |
Gets the vertex radius. | |
const std::array< Length2, 4u > & | GetVertices () const noexcept |
Gets this rectangle's vertices. More... | |
void | SetDimensions (Length2 val) |
Sets the dimensions of this rectangle. More... | |
void | SetOffset (Length2 val) |
Sets the x and y offset of this rectangle. More... | |
void | SetVertexRadius (ChildCounter, NonNegative< Length > value) |
Sets the vertex radius for the specified child to the given value. More... | |
Static rectangle.
Provides a rectangular compile-time static class implementation of the geometry policy of the Compositor
host class template.
|
inlinenoexcept |
Gets the child count.
|
inlineconstexprnoexcept |
Gets the dimensions of this rectangle.
Referenced by playrho::d2::part::StaticRectangle< W, H, V >::SetDimensions().
|
inlinenoexcept |
Gets this rectangle's normals.
Referenced by playrho::d2::part::StaticRectangle< W, H, V >::GetChild().
|
inlineconstexprnoexcept |
Gets the x and y offset of this rectangle.
Referenced by playrho::d2::part::StaticRectangle< W, H, V >::SetOffset().
|
inlinenoexcept |
Gets this rectangle's vertices.
Referenced by playrho::d2::part::StaticRectangle< W, H, V >::GetChild(), and playrho::d2::part::StaticRectangle< W, H, V >::GetMassData().
|
inline |
Sets the dimensions of this rectangle.
InvalidArgument | If called to change the dimensions. |
|
inline |
Sets the x and y offset of this rectangle.
InvalidArgument | If called to change the offset. |
|
inline |
Sets the vertex radius for the specified child to the given value.