Vertex Set. More...
#include <playrho/d2/VertexSet.hpp>
Public Types | |
| using | const_pointer = const Length2 * |
| Constant pointer type. | |
Public Member Functions | |
| VertexSet (Area minSepSquared=GetDefaultMinSeparationSquared()) | |
| Initializing constructor. | |
| bool | add (const Length2 &value) |
| Adds the given vertex into the set if allowed. | |
| const_pointer | begin () const noexcept |
| Gets the "begin" iterator value. | |
| void | clear () noexcept |
| Clear this set. | |
| const_pointer | data () const noexcept |
| Gets the pointer to the data buffer. | |
| const_pointer | end () const noexcept |
| Gets the "end" iterator value. | |
| const_pointer | find (const Length2 &value) const |
| Area | GetMinSeparationSquared () const noexcept |
| Gets the min separation squared. | |
| Length2 | operator[] (std::size_t index) const noexcept |
| Indexed access. | |
| std::size_t | size () const noexcept |
| Gets the current size of this set. | |
Static Public Member Functions | |
| static Area | GetDefaultMinSeparationSquared () |
| Gets the default minimum separation squared value. | |
Vertex Set.
This is a container that enforces the invariant that no two vertices can be closer together than the minimum separation distance.
|
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.
Referenced by add().