Class Delaunator

java.lang.Object
gov.nih.mipav.model.structures.Delaunator

public class Delaunator extends Object
  • Field Details

  • Constructor Details

    • Delaunator

      public Delaunator()
  • Method Details

    • fast_mod

      int fast_mod(int i, int c)
    • sum

      double sum(Vector<Double> x)
    • dist

      double dist(double ax, double ay, double bx, double by)
    • circumradius

      double circumradius(double ax, double ay, double bx, double by, double cx, double cy)
    • orient

      boolean orient(double px, double py, double qx, double qy, double rx, double ry)
    • circumcenter

      Delaunator.Pair<Double,Double> circumcenter(double ax, double ay, double bx, double by, double cx, double cy)
    • in_circle

      boolean in_circle(double ax, double ay, double bx, double by, double cx, double cy, double px, double py)
    • check_pts_equal

      boolean check_pts_equal(double x1, double y1, double x2, double y2)
    • pseudo_angle

      double pseudo_angle(double dx, double dy)
    • validate

      void validate(Vector<Double> coords, double e)
    • validate

      void validate(Vector<Double> coords)
    • testTrianglesMatchJSOutput

      public void testTrianglesMatchJSOutput()
    • readLine

      private String readLine(RandomAccessFile raFile) throws IOException
      readLine() - reads a line of the file and.
      Returns:
      the line read in
      Throws:
      IOException - if there is an error reading the file
    • testCorrectTriangulation

      public void testCorrectTriangulation()
    • testCase11

      public void testCase11()
    • testCase24

      public void testCase24()
    • testCase13

      public void testCase13()
    • testRobustness

      public void testRobustness()
    • basic_example

      public void basic_example()