Searched refs:angleFromVerticalInDegrees (Results 1 – 2 of 2) sorted by relevance
232 public static float getXYRatio(int angleFromVerticalInDegrees) { in getXYRatio() argument233 if (angleFromVerticalInDegrees <= 0) { in getXYRatio()236 if (angleFromVerticalInDegrees >= 90) { in getXYRatio()239 return (float) Math.tan(Math.toRadians(angleFromVerticalInDegrees)); in getXYRatio()
425 private void doTestGetXYRatio(int angleFromVerticalInDegrees, float expectedXYRatioRounded) { in doTestGetXYRatio() argument426 float result = EditorTouchState.getXYRatio(angleFromVerticalInDegrees); in doTestGetXYRatio()429 angleFromVerticalInDegrees, expectedXYRatioRounded, result); in doTestGetXYRatio()