Class GeoPathFactory


  • public class GeoPathFactory
    extends java.lang.Object
    Class which constructs a GeoPath representing an arbitrary path.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GeoPathFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static GeoPoint[] filterPoints​(GeoPoint[] pathPoints)
      Filter duplicate points.
      static GeoPath makeGeoPath​(PlanetModel planetModel, double maxCutoffAngle, GeoPoint[] pathPoints)
      Create a GeoPath of the right kind given the specified information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoPathFactory

        private GeoPathFactory()
    • Method Detail

      • makeGeoPath

        public static GeoPath makeGeoPath​(PlanetModel planetModel,
                                          double maxCutoffAngle,
                                          GeoPoint[] pathPoints)
        Create a GeoPath of the right kind given the specified information.
        Parameters:
        planetModel - is the planet model.
        maxCutoffAngle - is the width of the path, measured as an angle.
        pathPoints - are the points in the path.
        Returns:
        a GeoPath corresponding to what was specified.
      • filterPoints

        private static GeoPoint[] filterPoints​(GeoPoint[] pathPoints)
        Filter duplicate points.
        Parameters:
        pathPoints - with the arras of points.
        Returns:
        the filtered array.