Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
#include <SimplexEdge.hpp>
Public Types | |
using | index_type = IndexPair::size_type |
Public Member Functions | |
SimplexEdge ()=default | |
Default constructor. More... | |
constexpr | SimplexEdge (const SimplexEdge ©)=default |
constexpr | SimplexEdge (Length2D pA, index_type iA, Length2D pB, index_type iB) noexcept |
Initializing constructor. More... | |
constexpr auto | GetPointA () const noexcept |
Gets point A (in world coordinates). More... | |
constexpr auto | GetPointB () const noexcept |
Gets point B (in world coordinates). More... | |
constexpr Length2D | GetPointDelta () const noexcept |
Gets the point delta. More... | |
constexpr auto | GetIndexA () const noexcept |
constexpr auto | GetIndexB () const noexcept |
constexpr auto | GetIndexPair () const noexcept |
Simplex edge.
This is the locations (in world coordinates) and indices of a pair of vertices from two shapes (shape A and shape B).
|
default |
Default constructor.
|
default |
|
inlinenoexcept |
Initializing constructor.
pA | Point A in world coordinates. |
iA | Index of point A within the shape that it comes from. |
pB | Point B in world coordinates. |
iB | Index of point B within the shape that it comes from. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Gets point A (in world coordinates).
|
inlinenoexcept |
Gets point B (in world coordinates).
|
inlinenoexcept |
Gets the point delta.
This is the difference between points A and B.