@Test void approxEquals() { assertTrue(MathUtil.approxEquals(0, 1e-8)); assertFalse(MathUtil.approxEquals(0, 1e-2)); }
public static boolean approxEquals(double d1, double d2) { if (Double.isInfinite(d1)) { return d1 == d2; } else { return Math.abs(d1 - d2) < EPSILON; } }
MathUtil { public static boolean approxEquals(double d1, double d2) { if (Double.isInfinite(d1)) { return d1 == d2; } else { return Math.abs(d1 - d2) < EPSILON; } } }
MathUtil { public static boolean approxEquals(double d1, double d2) { if (Double.isInfinite(d1)) { return d1 == d2; } else { return Math.abs(d1 - d2) < EPSILON; } }  }
MathUtil { public static boolean approxEquals(double d1, double d2) { if (Double.isInfinite(d1)) { return d1 == d2; } else { return Math.abs(d1 - d2) < EPSILON; } }  static double angleWrap(double angle); static double clamp(double d); static double clampAbove(double d, double threshold); static double cutOffBelow(double d, double threshold); static double powRetainingSign(double d, double power); static double deadZone(double d, double thresh); static Pose relativeOdometryUpdate(Pose fieldPose, Pose robotPoseDelta); static boolean approxEquals(double d1, double d2); static Point lineSegmentCircleIntersection(Point ul1, Point ul2, Point o, double radius); static boolean between(double r1, double r2, double val, double threshold); }
MathUtil { public static boolean approxEquals(double d1, double d2) { if (Double.isInfinite(d1)) { return d1 == d2; } else { return Math.abs(d1 - d2) < EPSILON; } }  static double angleWrap(double angle); static double clamp(double d); static double clampAbove(double d, double threshold); static double cutOffBelow(double d, double threshold); static double powRetainingSign(double d, double power); static double deadZone(double d, double thresh); static Pose relativeOdometryUpdate(Pose fieldPose, Pose robotPoseDelta); static boolean approxEquals(double d1, double d2); static Point lineSegmentCircleIntersection(Point ul1, Point ul2, Point o, double radius); static boolean between(double r1, double r2, double val, double threshold); static final double EPSILON; }