Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Types | Public Attributes | Static Public Attributes | List of all members
box2d::IndexPair Struct Reference

Index pair. More...

#include <IndexPair.hpp>

Public Types

using size_type = std::remove_const< decltype(MaxShapeVertices)>::type
 Size type. More...
 

Public Attributes

size_type a
 Index of vertex from shape A. More...
 
size_type b
 Index of vertex from shape B. More...
 

Static Public Attributes

static constexpr size_type InvalidIndex = static_cast<size_type>(-1)
 

Detailed Description

Index pair.

Note
This data structure is at least 2-bytes large.

Member Typedef Documentation

◆ size_type

using box2d::IndexPair::size_type = std::remove_const<decltype(MaxShapeVertices)>::type

Size type.

Must be big enough to hold max posible count of vertices.

Member Data Documentation

◆ a

size_type box2d::IndexPair::a

Index of vertex from shape A.

◆ b

size_type box2d::IndexPair::b

Index of vertex from shape B.

◆ InvalidIndex

constexpr size_type box2d::IndexPair::InvalidIndex = static_cast<size_type>(-1)
static

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