IndexPair.hpp File Reference
Go to the source code of this file.
Classes | |
struct | playrho::detail::LengthIndices< N > |
Length and vertex counter array of indices. More... | |
struct | playrho::detail::SeparationInfo< N > |
Separation information. More... | |
struct | playrho::LengthIndexPair |
A length associated with two vertex counter indices. More... | |
Namespaces | |
playrho | |
playrho::detail | |
playrho::d2 | |
Typedefs | |
using | playrho::IndexPair = std::pair< VertexCounter, VertexCounter > |
Index pair. More... | |
using | playrho::IndexPair3 = std::array< IndexPair, MaxSimplexEdges > |
Array of three index-pair elements. More... | |
template<std::size_t N> | |
using | playrho::VertexCounterArray = std::array< VertexCounter, N > |
Vertex counter array template alias. More... | |
using | playrho::VertexCounter2 = VertexCounterArray< 2 > |
2-element vertex counter array. More... | |
using | playrho::d2::LengthIndices = detail::LengthIndices< 2 > |
Length and vertex counter array of indices for 2-D space. More... | |
using | playrho::d2::SeparationInfo = detail::SeparationInfo< 2 > |
Separation information alias for 2-D space. More... | |
Functions | |
PLAYRHO_CONSTEXPR std::size_t | playrho::GetNumValidIndices (IndexPair3 pairs) noexcept |
Gets the number of valid indices in the given collection of index pairs. More... | |
PLAYRHO_CONSTEXPR bool | playrho::empty (IndexPair3 pairs) noexcept |
Checks whether the given collection of index pairs is empty. More... | |
PLAYRHO_CONSTEXPR auto | playrho::size (IndexPair3 pairs) -> decltype(GetNumValidIndices(pairs)) |
Gets the dynamic size of the given collection of index pairs. More... | |
PLAYRHO_CONSTEXPR auto | playrho::max_size (IndexPair3 pairs) -> decltype(pairs.max_size()) |
Gets the maximum size of the given container of index pairs. More... | |
template<std::size_t N> | |
VertexCounter | playrho::GetFirstShapeVertexIdx (const detail::SeparationInfo< N > &info) noexcept |
Gets first shape vertex index. More... | |
template<VertexCounter M, std::size_t N> | |
VertexCounter | playrho::GetSecondShapeVertexIdx (const detail::SeparationInfo< N > &info) noexcept |
Gets second shape vertex indices. More... | |
Variables | |
const PLAYRHO_CONSTEXPR auto | playrho::InvalidIndexPair |
Invalid index-pair value. More... | |
const PLAYRHO_CONSTEXPR auto | playrho::InvalidIndexPair3 |
Invalid array of three index-pair elements. More... | |