Package com.day.util

Class Math


  • public final class Math
    extends java.lang.Object
    This class provides some mathematical utilities that extends those of Math.
    Since:
    antbear Audience wad
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double max3​(double a, double b, double c)
      Returns the largest of the three argument values.
      static int max3​(int a, int b, int c)
      Returns the largest of the three argument values.
      static double min3​(double a, double b, double c)
      Returns the smallest of the three argument values.
      static int min3​(int a, int b, int c)
      Returns the smallest of the three argument values.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • min3

        public static final int min3​(int a,
                                     int b,
                                     int c)
        Returns the smallest of the three argument values.
        Parameters:
        a - The first value
        b - The second value
        c - The third value
        Returns:
        The smallest value of the three
      • max3

        public static final int max3​(int a,
                                     int b,
                                     int c)
        Returns the largest of the three argument values.
        Parameters:
        a - The first value
        b - The second value
        c - The third value
        Returns:
        The largest value of the three
      • min3

        public static final double min3​(double a,
                                        double b,
                                        double c)
        Returns the smallest of the three argument values.
        Parameters:
        a - The first value
        b - The second value
        c - The third value
        Returns:
        The smallest value of the three
      • max3

        public static final double max3​(double a,
                                        double b,
                                        double c)
        Returns the largest of the three argument values.
        Parameters:
        a - The first value
        b - The second value
        c - The third value
        Returns:
        The largest value of the three