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

Joint key. More...

#include <JointKey.hpp>

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

Public Member Functions

constexpr BodyID GetBody1 () const noexcept
 Gets body 1.
 
constexpr BodyID GetBody2 () const
 Gets body 2.
 

Static Public Member Functions

static constexpr JointKey Get (BodyID bodyA, BodyID bodyB) noexcept
 Gets the JointKey for the given bodies.
 

Private Member Functions

constexpr JointKey (BodyID body1, BodyID body2)
 Initializing constructor.
 

Private Attributes

BodyID m_body1
 Identifier of body 1. More...
 
BodyID m_body2
 Identifier of body 2. More...
 

Related Functions

(Note that these are not member functions.)

constexpr bool IsFor (const JointKey key, BodyID body) noexcept
 Determines whether the given key is for the given body.
 

Detailed Description

Joint key.

Member Data Documentation

◆ m_body1

BodyID playrho::d2::JointKey::m_body1
private

Identifier of body 1.

This is the body with the lower-than or equal-to address.

Referenced by GetBody1().

◆ m_body2

BodyID playrho::d2::JointKey::m_body2
private

Identifier of body 2.

This is the body with the higher-than or equal-to address.

Referenced by GetBody2().


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