Class LargeNumberUtils

java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.utils.LargeNumberUtils

public class LargeNumberUtils
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    LargeNumberUtils()  
  • Method Summary

    Modifier and Type Method Description
    static double maxMagnitude​(double a, double b)
    Get magnitude of largest value
    static double requireFinite​(double value)
    Ensure value is finite

    Methods inherited from class java.lang.Object

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

  • Method Details

    • requireFinite

      public static double requireFinite​(double value)
      Ensure value is finite
      Parameters:
      value -
      Returns:
      value between +/- Double.MAX_VALUE
    • maxMagnitude

      public static double maxMagnitude​(double a, double b)
      Get magnitude of largest value
      Parameters:
      a -
      b -
      Returns:
      maximum magnitude