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

Simplex edge. More...

#include <playrho/d2/SimplexEdge.hpp>

Public Member Functions

 SimplexEdge ()=default
 Default constructor.
 
constexpr SimplexEdge (const Length2 &pA, VertexCounter iA, const Length2 &pB, VertexCounter iB) noexcept
 Initializing constructor. More...
 
constexpr auto GetIndexA () const noexcept
 Gets index A.
 
constexpr auto GetIndexB () const noexcept
 Gets index B.
 
constexpr auto GetIndexPair () const noexcept
 Gets the index pair.
 
constexpr auto GetPointA () const noexcept
 Gets point A (in world coordinates).
 
constexpr auto GetPointB () const noexcept
 Gets point B (in world coordinates).
 

Detailed Description

Simplex edge.

This is the locations (in world coordinates) and indices of a pair of vertices from two shapes (shape A and shape B).

Constructor & Destructor Documentation

◆ SimplexEdge()

constexpr playrho::d2::SimplexEdge::SimplexEdge ( const Length2 pA,
VertexCounter  iA,
const Length2 pB,
VertexCounter  iB 
)
constexprnoexcept

Initializing constructor.

Parameters
pAPoint A in world coordinates.
iAIndex of point A within the shape that it comes from.
pBPoint B in world coordinates.
iBIndex of point B within the shape that it comes from.

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