Class GeometryUtils

java.lang.Object
davidmarino.service.mapservice.GeometryUtils

public class GeometryUtils extends Object
The GeometryUtils class holds the calculations to generate a Voronoi model.
  • Constructor Details

    • GeometryUtils

      public GeometryUtils()
  • Method Details

    • clipPolygon

      public static Polygon clipPolygon(Polygon polygon, Line bisector, Point site)
      Clips polygon relative to Point site along bisection formed between site and other point.
      Parameters:
      polygon - to mutate and starts encompassing the entire image
      bisector - of the site point and other
      site - point
      Returns:
      Polygon
    • intersect

      public static Point intersect(Point A, Point B, Line bisector)
      Finds the point where two points intersect relative to the bisector.
      Parameters:
      A - point
      B - point
      bisector - of the site point and other
      Returns: