Class ProjectionCyl
- java.lang.Object
-
- zext.plantuml.com.ctreber.acearth.projection.Projection
-
- zext.plantuml.com.ctreber.acearth.projection.ProjectionCyl
-
public class ProjectionCyl extends Projection
Cylindrical projection. Show Earth flatly spread out on rectangle.
© 2002 Christian Treber, ct@ctreber.com
-
-
Constructor Summary
Constructors Constructor Description ProjectionCyl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinategetLocation(int pX, int pY)Translate screen point into coordinate on Earth.doubleinverseProjectX(double pX)doubleinverseProjectY(double y)booleanisVisible(Point3D pPoint)All of Earth is visible.doubleprojectX(double pX, double pZ)Project 3D point on x axis.doubleprojectY(double pY)Project 3D point on y axis.protected voidsetScale()The scale is set so that a value of 2PI gets mapped to the full image width times the magnification.-
Methods inherited from class zext.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
-
-
-
-
Method Detail
-
isVisible
public boolean isVisible(Point3D pPoint)
All of Earth is visible.
- Specified by:
isVisiblein classProjection- Parameters:
pPoint-- Returns:
-
getLocation
public Coordinate getLocation(int pX, int pY)
Description copied from class:ProjectionTranslate screen point into coordinate on Earth.
- Specified by:
getLocationin 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:
setScalein classProjection
-
projectX
public double projectX(double pX, double pZ)Description copied from class:ProjectionProject 3D point on x axis.
- Specified by:
projectXin classProjection- Returns:
- Longitude (-PI to PI), linearly on x axis.
-
inverseProjectX
public double inverseProjectX(double pX)
- Specified by:
inverseProjectXin classProjection
-
projectY
public double projectY(double pY)
Description copied from class:ProjectionProject 3D point on y axis.
- Specified by:
projectYin 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:
inverseProjectYin classProjection
-
-