Class ProjectionOrtho
java.lang.Object
zext.plantuml.com.ctreber.acearth.projection.Projection
zext.plantuml.com.ctreber.acearth.projection.ProjectionOrtho
Orthographic projection (show Earth as a ball).
© 2002 Christian Treber, ct@ctreber.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocation(int pX, int pY) Translate screen point into coordinate on Earth.doubleinverseProjectX(double pX) doubleinverseProjectY(double pY) booleanAll 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 not from -PI to PI but from -1 to 1 in this case (the range of x, y, z of the points).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
-
Constructor Details
-
ProjectionOrtho
public ProjectionOrtho()
-
-
Method Details
-
isVisible
All of Earth is visible.
- Specified by:
isVisiblein classProjection- Parameters:
pPoint-- Returns:
-
getLocation
Description copied from class:ProjectionTranslate screen point into coordinate on Earth.
- Specified by:
getLocationin classProjection- Returns:
-
projectX
public double projectX(double pX, double pZ) Description copied from class:ProjectionProject 3D point on x axis.
- Specified by:
projectXin classProjection- Returns:
- Longitude, not in rad but from -1 to 1.
-
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, not in rad but from -1 to 1.
-
inverseProjectY
public double inverseProjectY(double pY) - Specified by:
inverseProjectYin classProjection
-
setScale
protected void setScale()The scale is not from -PI to PI but from -1 to 1 in this case (the range of x, y, z of the points).
- Specified by:
setScalein classProjection
-