Class ProjectionCyl
java.lang.Object
ext.plantuml.com.ctreber.acearth.projection.Projection
ext.plantuml.com.ctreber.acearth.projection.ProjectionCyl
Cylindrical projection. Show Earth flatly spread out on rectangle.
© 2002 Christian Treber, [email protected]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocation
(int pX, int pY) Translate screen point into coordinate on Earth.double
inverseProjectX
(double pX) double
inverseProjectY
(double y) boolean
All of Earth is visible.double
projectX
(double pX, double pZ) Project 3D point on x axis.double
projectY
(double pY) Project 3D point on y axis.protected void
setScale()
The scale is set so that a value of 2PI gets mapped to the full image width times the magnification.Methods inherited from class ext.plantuml.com.ctreber.acearth.projection.Projection
finalize, finalizeX, finalizeY, getScale, getViewPos, initTransformTable, inverseFinalizeX, inverseFinalizeY, isWithinImage, project2D, rotate, rotateReverse, setImageHeight, setImageWidth, setShiftX, setShiftY, setViewMagnification, setViewPos, setViewRotation
-
Constructor Details
-
ProjectionCyl
public ProjectionCyl()
-
-
Method Details
-
isVisible
All of Earth is visible.
- Specified by:
isVisible
in classProjection
- Parameters:
pPoint
-- Returns:
-
getLocation
Description copied from class:Projection
Translate screen point into coordinate on Earth.
- Specified by:
getLocation
in classProjection
- Returns:
-
setScale
protected void setScale()The scale is set so that a value of 2PI gets mapped to the full image width times the magnification. But see ProjectionOrtho.setScale().
- Specified by:
setScale
in classProjection
-
projectX
public double projectX(double pX, double pZ) Description copied from class:Projection
Project 3D point on x axis.
- Specified by:
projectX
in classProjection
- Returns:
- Longitude (-PI to PI), linearly on x axis.
-
inverseProjectX
public double inverseProjectX(double pX) - Specified by:
inverseProjectX
in classProjection
-
projectY
public double projectY(double pY) Description copied from class:Projection
Project 3D point on y axis.
- Specified by:
projectY
in classProjection
- Returns:
- Latitude (-PI/2 to PI/2), projected from center of Earth on y axis with a linear scale.
-
inverseProjectY
public double inverseProjectY(double y) - Specified by:
inverseProjectY
in classProjection
-