PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::SimplexEdge Class Reference

Simplex edge. More...

#include <SimplexEdge.hpp>

Collaboration diagram for playrho::d2::SimplexEdge:
[legend]

Public Member Functions

 SimplexEdge ()=default
 Default constructor.
 
constexpr SimplexEdge (const SimplexEdge &copy)=default
 Copy constructor.
 
constexpr SimplexEdge (Length2 pA, VertexCounter iA, Length2 pB, VertexCounter iB) noexcept
 Initializing constructor. More...
 
constexpr auto GetPointA () const noexcept
 Gets point A (in world coordinates).
 
constexpr auto GetPointB () const noexcept
 Gets point B (in world coordinates).
 
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.
 

Private Attributes

Length2 m_wA
 Point A in world coordinates. This is the support point in proxy A. 8-bytes.
 
Length2 m_wB
 Point B in world coordinates. This is the support point in proxy B. 8-bytes.
 
IndexPair m_indexPair
 Index pair. More...
 

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

Note
This data structure is 20-bytes large (on at least one 64-bit platform).

Constructor & Destructor Documentation

◆ SimplexEdge()

constexpr playrho::d2::SimplexEdge::SimplexEdge ( Length2  pA,
VertexCounter  iA,
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.

Member Data Documentation

◆ m_indexPair

IndexPair playrho::d2::SimplexEdge::m_indexPair
private

Index pair.

Indices of points A and B. 2-bytes.

Referenced by GetIndexA(), GetIndexB(), and GetIndexPair().


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