Class GeoS2ShapeFactory


  • public class GeoS2ShapeFactory
    extends java.lang.Object
    Class which constructs a GeoPolygon representing S2 google pixel.
    • Constructor Detail

      • GeoS2ShapeFactory

        private GeoS2ShapeFactory()
    • Method Detail

      • makeGeoS2Shape

        public static GeoPolygon makeGeoS2Shape​(PlanetModel planetModel,
                                                GeoPoint point1,
                                                GeoPoint point2,
                                                GeoPoint point3,
                                                GeoPoint point4)
        Creates a convex polygon with 4 planes by providing 4 points in CCW. This is a very fast shape and there are no checks that the points currently define a convex shape.
        Parameters:
        planetModel - The planet model
        point1 - the first point.
        point2 - the second point.
        point3 - the third point.
        point4 - the four point.
        Returns:
        the generated shape.