Searched refs:normalizeDegrees (Results 1 – 2 of 2) sorted by relevance
22 import static com.android.server.uwb.correction.math.MathHelper.normalizeDegrees;60 assertThat(Math.round(normalizeDegrees(5.0f))).isEqualTo(5); in testNormalizeDegrees()61 assertThat(Math.round(normalizeDegrees(-5.0f))).isEqualTo(-5); in testNormalizeDegrees()62 assertThat(Math.round(normalizeDegrees(-350.0f))).isEqualTo(10); in testNormalizeDegrees()63 assertThat(Math.round(normalizeDegrees(350.0f))).isEqualTo(-10); in testNormalizeDegrees()64 assertThat(Math.round(normalizeDegrees(170.0f))).isEqualTo(170); in testNormalizeDegrees()65 assertThat(Math.round(normalizeDegrees(-170.0f))).isEqualTo(-170); in testNormalizeDegrees()66 assertThat(Math.round(normalizeDegrees(-190.0f))).isEqualTo(170); in testNormalizeDegrees()67 assertThat(Math.round(normalizeDegrees(190.0f))).isEqualTo(-170); in testNormalizeDegrees()68 assertThat(Math.round(normalizeDegrees(-428.0f))).isEqualTo(-68); in testNormalizeDegrees()[all …]
62 public static float normalizeDegrees(float deg) { in normalizeDegrees() method in MathHelper