Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
Vertex Set. More...
#include <VertexSet.hpp>
Public Types | |
using | const_pointer = const Length2D * |
Public Member Functions | |
VertexSet (Vec2::data_type minSepSquared=GetDefaultMinSeparationSquared()) | |
Vec2::data_type | GetMinSeparationSquared () const noexcept |
bool | add (Length2D value) |
size_t | size () const noexcept |
const_pointer | begin () const |
const_pointer | end () const |
const_pointer | find (Length2D value) const |
Finds contained point whose delta with the given point has a squared length less than or equal to this set's minimum length squared value. More... | |
Length2D | operator[] (size_t index) const noexcept |
Static Public Member Functions | |
static Vec2::data_type | GetDefaultMinSeparationSquared () |
Vertex Set.
This is a container that enforces the invariant that no two vertices can be closer together than the minimum separation distance.
using box2d::VertexSet::const_pointer = const Length2D* |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Finds contained point whose delta with the given point has a squared length less than or equal to this set's minimum length squared value.
|
inlinestatic |
|
inlinenoexcept |
|
inlinenoexcept |