Package com.day.util

Class Math

java.lang.Object
com.day.util.Math

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

    Modifier and Type
    Method
    Description
    static final double
    max3(double a, double b, double c)
    Returns the largest of the three argument values.
    static final int
    max3(int a, int b, int c)
    Returns the largest of the three argument values.
    static final double
    min3(double a, double b, double c)
    Returns the smallest of the three argument values.
    static final 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 Details

    • 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