Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Types | Public Member Functions | Static Public Member Functions | List of all members
box2d::VertexSet Class Reference

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 ()
 

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 Typedef Documentation

◆ const_pointer

Constructor & Destructor Documentation

◆ VertexSet()

box2d::VertexSet::VertexSet ( Vec2::data_type  minSepSquared = GetDefaultMinSeparationSquared())
inline

Member Function Documentation

◆ add()

bool box2d::VertexSet::add ( Length2D  value)
inline

◆ begin()

const_pointer box2d::VertexSet::begin ( ) const
inline

◆ end()

const_pointer box2d::VertexSet::end ( ) const
inline

◆ find()

const_pointer box2d::VertexSet::find ( Length2D  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.

◆ GetDefaultMinSeparationSquared()

static Vec2::data_type box2d::VertexSet::GetDefaultMinSeparationSquared ( )
inlinestatic

◆ GetMinSeparationSquared()

Vec2::data_type box2d::VertexSet::GetMinSeparationSquared ( ) const
inlinenoexcept

◆ operator[]()

Length2D box2d::VertexSet::operator[] ( size_t  index) const
inlinenoexcept

◆ size()

size_t box2d::VertexSet::size ( ) const
inlinenoexcept

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