Class RootSolver

java.lang.Object
com.hypixel.hytale.server.npc.util.RootSolver

public class RootSolver extends Object
  • 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
    protected static double
    cubicRoot(double x)
     
    protected static boolean
    isZero(double x)
     
    static int
    solveCubic(double c3, double c2, double c1, double c0, double[] results)
     
    static int
    solveQuadric(double c2, double c1, double c0, double[] results, int resultIndex)
     
    static int
    solveQuartic(double c4, double c3, double c2, double c1, double c0, double[] results)
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • RootSolver

      public RootSolver()
  • Method Details

    • isZero

      protected static boolean isZero(double x)
    • cubicRoot

      protected static double cubicRoot(double x)
    • solveQuadric

      public static int solveQuadric(double c2, double c1, double c0, double[] results, int resultIndex)
    • solveCubic

      public static int solveCubic(double c3, double c2, double c1, double c0, double[] results)
    • solveQuartic

      public static int solveQuartic(double c4, double c3, double c2, double c1, double c0, double[] results)