Class DoubleMath

java.lang.Object
org.mbari.jcommons.math.DoubleMath

public class DoubleMath extends Object
Since:
2011-12-27
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isEven(double x)
     
    static double
    mod(double x, double y)
     
    static double
    normalizeRadianAngle(double angleRadians)
    Adjusts an angle in radians to fall between 0 and 2 * PI
    static double
    rem(double x, double y)
     
    static int
    sign(double x)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DoubleMath

      public DoubleMath()
  • Method Details

    • isEven

      public static boolean isEven(double x)
      Parameters:
      x -
      Returns:
    • mod

      public static double mod(double x, double y)
      Parameters:
      x -
      y -
      Returns:
    • normalizeRadianAngle

      public static double normalizeRadianAngle(double angleRadians)
      Adjusts an angle in radians to fall between 0 and 2 * PI
      Parameters:
      angleRadians -
      Returns:
    • rem

      public static double rem(double x, double y)
      Parameters:
      x -
      y -
      Returns:
    • sign

      public static int sign(double x)
      Parameters:
      x -
      Returns: