Moved calculations out of AngleCriterion into JointAnalyzer