playrho::d2::SimplexEdge Class Reference
#include <SimplexEdge.hpp>
Public Member Functions | |
SimplexEdge ()=default | |
Default constructor. More... | |
PLAYRHO_CONSTEXPR | SimplexEdge (const SimplexEdge ©)=default |
Copy constructor. More... | |
PLAYRHO_CONSTEXPR | SimplexEdge (Length2 pA, VertexCounter iA, Length2 pB, VertexCounter iB) noexcept |
Initializing constructor. More... | |
PLAYRHO_CONSTEXPR auto | GetPointA () const noexcept |
Gets point A (in world coordinates). More... | |
PLAYRHO_CONSTEXPR auto | GetPointB () const noexcept |
Gets point B (in world coordinates). More... | |
PLAYRHO_CONSTEXPR auto | GetIndexA () const noexcept |
Gets index A. More... | |
PLAYRHO_CONSTEXPR auto | GetIndexB () const noexcept |
Gets index B. More... | |
PLAYRHO_CONSTEXPR auto | GetIndexPair () const noexcept |
Gets the 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).
Definition at line 36 of file SimplexEdge.hpp.
Constructor & Destructor Documentation
◆ SimplexEdge() [1/3]
|
default |
Default constructor.
◆ SimplexEdge() [2/3]
|
inlinedefault |
Copy constructor.
◆ SimplexEdge() [3/3]
|
inlinenoexcept |
Initializing constructor.
- Parameters
-
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.
Definition at line 74 of file SimplexEdge.hpp.
Member Function Documentation
◆ GetPointA()
|
inlinenoexcept |
Gets point A (in world coordinates).
Definition at line 54 of file SimplexEdge.hpp.
◆ GetPointB()
|
inlinenoexcept |
Gets point B (in world coordinates).
Definition at line 57 of file SimplexEdge.hpp.
◆ GetIndexA()
|
inlinenoexcept |
Gets index A.
Definition at line 60 of file SimplexEdge.hpp.
◆ GetIndexB()
|
inlinenoexcept |
Gets index B.
Definition at line 63 of file SimplexEdge.hpp.
◆ GetIndexPair()
|
inlinenoexcept |
Gets the index pair.
Definition at line 66 of file SimplexEdge.hpp.
The documentation for this class was generated from the following file:
- Collision/SimplexEdge.hpp