Definition of the Simplex
class and closely related code.
More...
#include <numeric>
#include <cassert>
#include <type_traits>
#include <playrho/Math.hpp>
#include <playrho/detail/Templates.hpp>
#include <playrho/ArrayList.hpp>
#include <playrho/Real.hpp>
#include <playrho/Settings.hpp>
#include <playrho/Units.hpp>
#include <playrho/Vector2.hpp>
#include <playrho/d2/IndexPair.hpp>
#include <playrho/d2/SimplexEdge.hpp>
Classes | |
struct | playrho::d2::Simplex::Cache |
Simplex cache. More... | |
class | playrho::d2::Simplex |
An encapsulation of a point, line segment, or triangle. More... | |
Namespaces | |
playrho | |
playrho::d2 | |
Typedefs | |
using | playrho::d2::SimplexEdges = ArrayList< SimplexEdge, MaxSimplexEdges, std::remove_const_t< decltype(MaxSimplexEdges)> > |
Simplex edge collection. | |
Functions | |
Length2 | playrho::d2::CalcSearchDirection (const SimplexEdges &simplexEdges) noexcept |
Calculates the "search direction" for the given simplex edge list. More... | |
constexpr Length2 | playrho::d2::GetClosestPoint (const Simplex &simplex) |
Gets the "closest point". | |
IndexPair3 | playrho::d2::GetIndexPairs (const SimplexEdges &collection) noexcept |
Gets index pairs for the given edges collection. | |
Length2 | playrho::d2::GetScaledDelta (const Simplex &simplex, Simplex::size_type index) |
Gets the scaled delta for the given indexed element of the given simplex. | |
Definition of the Simplex
class and closely related code.