PlayRho  2.0.0
An interactive physics engine & library.
DistanceProxy.hpp File Reference

Definition of the DistanceProxy class and closely related code. More...

#include <cassert>
#include <cstddef>
#include <limits>
#include <vector>
#include <playrho/NonNegative.hpp>
#include <playrho/Settings.hpp>
#include <playrho/Span.hpp>
#include <playrho/d2/Math.hpp>
Include dependency graph for DistanceProxy.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  playrho::d2::DistanceProxy
 Distance Proxy. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

std::size_t playrho::d2::FindLowestRightMostVertex (Span< const Length2 > vertices) noexcept
 Finds the index of the lowest right most vertex in the given collection. More...
 
std::vector< Length2 > playrho::d2::GetConvexHullAsVector (Span< const Length2 > vertices)
 Gets the convex hull for the given collection of vertices as a vector. More...
 
template<class T >
VertexCounter playrho::d2::GetSupportIndex (const DistanceProxy &proxy, T dir) noexcept
 Gets the supporting vertex index in given direction for given distance proxy. More...
 
auto playrho::d2::GetVertexRadius (const DistanceProxy &arg) noexcept
 Gets the vertex radius property of a given distance proxy.
 
bool playrho::d2::operator!= (const DistanceProxy &lhs, const DistanceProxy &rhs) noexcept
 Determines with the two given distance proxies are not equal.
 
bool playrho::d2::operator== (const DistanceProxy &lhs, const DistanceProxy &rhs) noexcept
 Determines with the two given distance proxies are equal.
 
bool playrho::d2::TestPoint (const DistanceProxy &proxy, const Length2 &point) noexcept
 Tests a point for containment in the given distance proxy. More...
 

Detailed Description

Definition of the DistanceProxy class and closely related code.