pub fn as_ball_joint(&self) -> Option<&BallJoint> {
        if let JointParams::BallJoint(j) = self {
            Some(j)
        } else {
            None
        }
    }
/// Gets a reference to the underlying ball joint, if `self` is one.
Gets a reference to the underlying ball joint, if `self` is one.
Gets a reference to the underlying ball joint if ` self ` is one .
pub fn as_ball_joint(&self) -> Option<&BallJoint> {
        if let JointParams::BallJoint(j) = self {
            Some(j)
        } else {
            None
        }
    }
pub fn as_ball_joint ( & self ) -> Option < & BallJoint > { if let JointParams :: BallJoint ( j ) = self { Some ( j ) } else { None } }
Gets a reference to the underlying ball joint, if `self` is one.
Gets a reference to the underlying ball joint if ` self ` is one .
&self