Class ComputationalGeometry

java.lang.Object
org.jzy3d.maths.algorithms.convexhull.algorithms.ComputationalGeometry

public class ComputationalGeometry extends Object
  • Field Details

  • Constructor Details

    • ComputationalGeometry

      public ComputationalGeometry()
  • Method Details

    • computeOrientation

      public static int computeOrientation(Coord2d p1, Coord2d p2, Coord2d q)
      Computes the orientation of a point q to the directed line segment p1-p2. The orientation of a point relative to a directed line segment indicates which way you turn to get to q after travelling from p1 to p2. 1 if q is counter-clockwise from p1-p2, -1 if q is clockwise from p1-p2, 0 if q is collinear with p1-p2-