PlayRho  2.0.0
An interactive physics engine & library.
JointConf.hpp File Reference

Definition of the JointConf class and closely related code. More...

#include <cstddef>
#include <playrho/BodyID.hpp>
#include <playrho/Units.hpp>
Include dependency graph for JointConf.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  playrho::d2::JointBuilder< T >
 Joint builder definition structure. More...
 
struct  playrho::d2::JointConf
 Base joint definition class. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

template<typename T >
constexpr auto playrho::d2::EnableLimit (T &conf, bool v) noexcept -> decltype(std::declval< T >().UseEnableLimit(bool{}))
 Enables or disables the limit based on the given value.
 
template<typename T >
constexpr auto playrho::d2::EnableMotor (T &conf, bool v) noexcept -> decltype(std::declval< T >().UseEnableMotor(bool{}))
 Enables or disables the motor property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetAngularMass (const T &conf) noexcept -> decltype(std::declval< T >().angularMass)
 Gets the angular mass property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetAngularMotorImpulse (const T &conf) noexcept -> decltype(std::declval< T >().angularMotorImpulse)
 Gets the angular motor impulse property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetAngularOffset (const T &conf) noexcept -> decltype(std::declval< T >().angularOffset)
 Gets the angular offset property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetAngularReaction (const T &conf) noexcept -> decltype(std::declval< T >().angularImpulse)
 Gets the angular reaction property of the given object.
 
constexpr BodyID playrho::d2::GetBodyA (const JointConf &object) noexcept
 Gets the first body attached to this joint.
 
constexpr BodyID playrho::d2::GetBodyB (const JointConf &object) noexcept
 Gets the second body attached to this joint.
 
constexpr bool playrho::d2::GetCollideConnected (const JointConf &object) noexcept
 Gets whether attached bodies should collide or not.
 
template<typename T >
constexpr auto playrho::d2::GetDampingRatio (const T &conf) noexcept -> decltype(std::declval< T >().dampingRatio)
 Gets the damping ratio property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetFrequency (const T &conf) noexcept -> decltype(std::declval< T >().frequency)
 Gets the frequency property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetGroundAnchorA (const T &conf) noexcept -> decltype(std::declval< T >().groundAnchorA)
 Gets the ground anchor A property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetGroundAnchorB (const T &conf) noexcept -> decltype(std::declval< T >().groundAnchorB)
 Gets the ground anchor B property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLength (const T &conf) noexcept -> decltype(std::declval< T >().length)
 Gets the length property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLimitState (const T &conf) noexcept -> decltype(std::declval< T >().limitState)
 Gets the limit state property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLinearMotorImpulse (const T &conf) noexcept -> decltype(std::declval< T >().motorImpulse)
 Gets the linear motor impulse property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLinearOffset (const T &conf) noexcept -> decltype(std::declval< T >().linearOffset)
 Gets the linear offset property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLinearReaction (const T &conf) noexcept -> decltype(std::declval< T >().linearImpulse)
 Gets the linear reaction property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLocalAnchorA (const T &conf) noexcept -> decltype(std::declval< T >().localAnchorA)
 Gets the local anchor A property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLocalAnchorB (const T &conf) noexcept -> decltype(std::declval< T >().localAnchorB)
 Gets the local anchor B property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLocalXAxisA (const T &conf) noexcept -> decltype(std::declval< T >().localXAxisA)
 Gets the local X axis A property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetLocalYAxisA (const T &conf) noexcept -> decltype(std::declval< T >().localYAxisA)
 Gets the local Y axis A property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetMaxForce (const T &conf) noexcept -> decltype(std::declval< T >().maxForce)
 Gets the max force property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetMaxMotorForce (const T &conf) noexcept -> decltype(std::declval< T >().maxMotorForce)
 Gets the max motor force property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetMaxMotorTorque (const T &conf) noexcept -> decltype(std::declval< T >().maxMotorTorque)
 Gets the max motor torque property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetMaxTorque (const T &conf) noexcept -> decltype(std::declval< T >().maxTorque)
 Gets the max torque property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetMotorSpeed (const T &conf) noexcept -> decltype(std::declval< T >().motorSpeed)
 Gets the motor speed property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetRatio (const T &conf) noexcept -> decltype(std::declval< T >().ratio)
 Gets the ratio property of the given object.
 
template<typename T >
constexpr auto playrho::d2::GetReferenceAngle (const T &conf) noexcept -> decltype(std::declval< T >().referenceAngle)
 Gets the reference angle property of the given object.
 
template<typename T >
constexpr auto playrho::d2::IsLimitEnabled (const T &conf) noexcept -> decltype(std::declval< T >().enableLimit)
 Gets whether or not the limit property of the given object is enabled.
 
template<typename T >
constexpr auto playrho::d2::IsMotorEnabled (const T &conf) noexcept -> decltype(std::declval< T >().enableMotor)
 Gets the motor enabled property of the given object.
 
void playrho::d2::Set (JointConf &def, const Joint &joint) noexcept
 Sets the joint definition data for the given joint.
 
template<typename T >
constexpr auto playrho::d2::SetMotorSpeed (T &conf, AngularVelocity v) noexcept -> decltype(std::declval< T >().UseMotorSpeed(AngularVelocity{}))
 Sets the motor speed property of the given object.
 

Detailed Description

Definition of the JointConf class and closely related code.