Class FlipHorizontalProjectionTransform

java.lang.Object
net.buildtheearth.terraminusminus.projection.transform.ProjectionTransform
net.buildtheearth.terraminusminus.projection.transform.FlipHorizontalProjectionTransform
All Implemented Interfaces:
GeographicProjection

public class FlipHorizontalProjectionTransform extends ProjectionTransform
Mirrors the warped projection horizontally. I.E. x' = -x and y' = y
  • Constructor Details

    • FlipHorizontalProjectionTransform

      public FlipHorizontalProjectionTransform(GeographicProjection delegate)
      Parameters:
      delegate - - projection to transform
  • Method Details

    • toGeo

      public double[] toGeo(double x, double y) throws OutOfProjectionBoundsException
      Description copied from interface: GeographicProjection
      Converts map coordinates to geographic coordinates
      Parameters:
      x - - x map coordinate
      y - - y map coordinate
      Returns:
      {longitude, latitude} in degrees
      Throws:
      OutOfProjectionBoundsException - if the specified point on the projected space cannot be mapped to a point of the geographic space
    • fromGeo

      public double[] fromGeo(double longitude, double latitude) throws OutOfProjectionBoundsException
      Description copied from interface: GeographicProjection
      Converts geographic coordinates to map coordinates
      Parameters:
      longitude - - longitude, in degrees
      latitude - - latitude, in degrees
      Returns:
      {x, y} map coordinates
      Throws:
      OutOfProjectionBoundsException - if the specified point on the geographic space cannot be mapped to a point of the projected space
    • upright

      public boolean upright()
      Description copied from interface: GeographicProjection
      Indicates whether or not the north pole is projected to the north of the south pole on the projected space, assuming Minecraft's coordinate system cardinal directions for the projected space (north is negative Z).
      Specified by:
      upright in interface GeographicProjection
      Overrides:
      upright in class ProjectionTransform
      Returns:
      north pole Z <= south pole Z
    • bounds

      public double[] bounds()
      Description copied from interface: GeographicProjection
      Indicates the minimum and maximum X and Y coordinates on the projected space.
      Specified by:
      bounds in interface GeographicProjection
      Overrides:
      bounds in class ProjectionTransform
      Returns:
      {minimum X, minimum Y, maximum X, maximum Y}
    • toString

      public String toString()
      Overrides:
      toString in class Object