Interface GeoProjection

    • Method Detail

      • project

        Vector2d project​(LatLonGeo latLon)
        Convert LatLon to (nearly) equivalent projected x,y position.
        Parameters:
        latLon -
        Returns:
        projected x, y
      • unproject

        LatLonGeo unproject​(double x,
                            double y)
        Convert projected x,y position back to (nearly) equivalent LatLon.
        Parameters:
        x - projected x position
        y - projected y position
        Returns:
        latLon
      • reprojectFrom

        Vector2d reprojectFrom​(double x,
                               double y,
                               GeoProjection fromProjection)
        Reproject an x,y position from a previous projection to this projection.

        This is equivalent to unprojecting the x,y position from the old projection and then projecting it to this projection, but in a single step, which may be performed more efficiently.

        Parameters:
        x - previously projected x position
        y - previously projected y position
        fromProjection - previous projection
        Returns:
        projected position
      • reprojectPosVelFrom

        KinematicVector2d reprojectPosVelFrom​(double x,
                                              double y,
                                              double vx,
                                              double vy,
                                              GeoProjection fromProjection)
        Reproject x, y position and corresponding x, y velocity vector at that location from a previous projection to this projection.
        Parameters:
        x - previously projected x position
        y - previously projected y position
        vx - previous x velocity component in projection space
        vy - previous y velocity component in projection space
        fromProjection - previous projection
        Returns:
        projected position and velocity