/*
 * Chipmunk2d::SlideJoint#max
 * @return [Float]
 */
static mrb_value
slide_joint_get_max(mrb_state* mrb, mrb_value self)
{
  cpConstraint* constraint;
  cpFloat mx;
  Data_Get_Struct(mrb, self, &mrb_cp_constraint_type, constraint);
  mx = cpSlideJointGetMax(constraint);
  return mrb_float_value(mrb, (mrb_float)mx);
}
float PhysicsJointLimit::getMax() const
{
    return PhysicsHelper::cpfloat2float(cpSlideJointGetMax(_cpConstraints.front()));
}
float PhysicsJointLimit::getMax() const
{
    return PhysicsHelper::cpfloat2float(cpSlideJointGetMax(m_pInfo->getJoints().front()));
}
cpFloat CCSlideJoint::getMax()
{
	return cpSlideJointGetMax(this->m_constraint);
}