double anglePV1, anglePV2, angleTV1, angleTV2;
if (match1on1) {
anglePV1 = AngleHelper.getAngle(pCenter, pHelp, pVertex1.toPoint());
anglePV2 = AngleHelper.getAngle(pCenter, pHelp, pVertex2.toPoint());
angleTV1 = AngleHelper.getAngle(tCenter, tHelp, tVertex1.toPoint());
angleTV2 = AngleHelper.getAngle(tCenter, tHelp, tVertex2.toPoint());
} else {
anglePV1 = AngleHelper.getAngle(pCenter, pHelp, pVertex1.toPoint());
anglePV2 = AngleHelper.getAngle(pCenter, pHelp, pVertex2.toPoint());
angleTV1 = AngleHelper.getAngle(tCenter, tHelp, tVertex2.toPoint());
angleTV2 = AngleHelper.getAngle(tCenter, tHelp, tVertex1.toPoint());