playrho::d2::PositionConstraint Class Reference

#include <PositionConstraint.hpp>

Public Types

using size_type = std::remove_const< decltype(MaxManifoldPoints)>::type
 Size type. More...
 

Public Member Functions

 PositionConstraint ()=default
 
 PositionConstraint (const Manifold &m, BodyConstraint &bA, Length rA, BodyConstraint &bB, Length rB)
 Initializing constructor. More...
 
BodyConstraintGetBodyA () const noexcept
 Gets body A. More...
 
BodyConstraintGetBodyB () const noexcept
 Gets body B. More...
 
Length GetRadiusA () const noexcept
 Gets radius A. More...
 
Length GetRadiusB () const noexcept
 Gets radius B. More...
 

Public Attributes

Manifold manifold
 Copy of contact's manifold with 1 or more contact points (64-bytes). More...
 

Detailed Description

Contact Position Constraint.

Note
This structure is 88-bytes large on at least one 64-bit platform.

Definition at line 31 of file PositionConstraint.hpp.

Member Typedef Documentation

◆ size_type

using playrho::d2::PositionConstraint::size_type = std::remove_const<decltype(MaxManifoldPoints)>::type

Size type.

Definition at line 35 of file PositionConstraint.hpp.

Constructor & Destructor Documentation

◆ PositionConstraint() [1/2]

playrho::d2::PositionConstraint::PositionConstraint ( )
default

◆ PositionConstraint() [2/2]

playrho::d2::PositionConstraint::PositionConstraint ( const Manifold m,
BodyConstraint bA,
Length  rA,
BodyConstraint bB,
Length  rB 
)
inline

Initializing constructor.

Definition at line 40 of file PositionConstraint.hpp.

Member Function Documentation

◆ GetBodyA()

BodyConstraint* playrho::d2::PositionConstraint::GetBodyA ( ) const
inlinenoexcept

Gets body A.

Definition at line 54 of file PositionConstraint.hpp.

◆ GetBodyB()

BodyConstraint* playrho::d2::PositionConstraint::GetBodyB ( ) const
inlinenoexcept

Gets body B.

Definition at line 57 of file PositionConstraint.hpp.

◆ GetRadiusA()

Length playrho::d2::PositionConstraint::GetRadiusA ( ) const
inlinenoexcept

Gets radius A.

Definition at line 60 of file PositionConstraint.hpp.

◆ GetRadiusB()

Length playrho::d2::PositionConstraint::GetRadiusB ( ) const
inlinenoexcept

Gets radius B.

Definition at line 63 of file PositionConstraint.hpp.

Member Data Documentation

◆ manifold

Manifold playrho::d2::PositionConstraint::manifold

Copy of contact's manifold with 1 or more contact points (64-bytes).

Definition at line 51 of file PositionConstraint.hpp.


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