Class ProjectionTransform
java.lang.Object
net.buildtheearth.terraminusminus.projection.transform.ProjectionTransform
- All Implemented Interfaces:
GeographicProjection
- Direct Known Subclasses:
ClampProjectionTransform,FlipHorizontalProjectionTransform,FlipVerticalProjectionTransform,OffsetProjectionTransform,RotateProjectionTransform,ScaleProjectionTransform,SwapAxesProjectionTransform
Warps a Geographic projection and applies a transformation to it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.buildtheearth.terraminusminus.projection.GeographicProjection
GeographicProjection.Deserializer, GeographicProjection.Serializer -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]bounds()Indicates the minimum and maximum X and Y coordinates on the projected space.delegate()doubleGives an estimation of the scale of this projection.booleanupright()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).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.buildtheearth.terraminusminus.projection.GeographicProjection
azimuth, azimuth, fromGeo, properties, tissot, tissot, toGeo, vector
-
Field Details
-
delegate
-
-
Constructor Details
-
ProjectionTransform
- Parameters:
delegate- - projection to transform
-
-
Method Details
-
upright
public boolean upright()Description copied from interface:GeographicProjectionIndicates 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:
uprightin interfaceGeographicProjection- Returns:
- north pole Z <= south pole Z
-
bounds
public double[] bounds()Description copied from interface:GeographicProjectionIndicates the minimum and maximum X and Y coordinates on the projected space.- Specified by:
boundsin interfaceGeographicProjection- Returns:
- {minimum X, minimum Y, maximum X, maximum Y}
-
metersPerUnit
public double metersPerUnit()Description copied from interface:GeographicProjectionGives an estimation of the scale of this projection. This is just an estimation, as distortion is inevitable when projecting a sphere onto a flat surface, so this value varies from places to places in reality.- Specified by:
metersPerUnitin interfaceGeographicProjection- Returns:
- an estimation of the scale of this projection
-
delegate
-