PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::VertexSet Class Reference

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.
 

Detailed Description

Vertex Set.

This is a container that enforces the invariant that no two vertices can be closer together than the minimum separation distance.

Member Function Documentation

◆ find()

const_pointer playrho::d2::VertexSet::find ( const Length2 value) const
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().


The documentation for this class was generated from the following file: