public class ProjectionCyl extends Projection
Cylindrical projection. Show Earth flatly spread out on rectangle.
© 2002 Christian Treber, ct@ctreber.com
| Constructor and Description |
|---|
ProjectionCyl() |
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getLocation(int pX,
int pY)
Translate screen point into coordinate on Earth.
|
double |
inverseProjectX(double pX) |
double |
inverseProjectY(double y) |
boolean |
isVisible(Point3D pPoint)
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.
|
finalize, finalizeX, finalizeY, getScale, getViewPos, initTransformTable, inverseFinalizeX, inverseFinalizeY, isWithinImage, project2D, rotate, rotateReverse, setImageHeight, setImageWidth, setShiftX, setShiftY, setViewMagnification, setViewPos, setViewRotationpublic boolean isVisible(Point3D pPoint)
All of Earth is visible.
isVisible in class ProjectionpPoint - public Coordinate getLocation(int pX, int pY)
ProjectionTranslate screen point into coordinate on Earth.
getLocation in class Projectionprotected 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().
setScale in class Projectionpublic double projectX(double pX,
double pZ)
ProjectionProject 3D point on x axis.
projectX in class Projectionpublic double inverseProjectX(double pX)
inverseProjectX in class Projectionpublic double projectY(double pY)
ProjectionProject 3D point on y axis.
projectY in class Projectionpublic double inverseProjectY(double y)
inverseProjectY in class ProjectionCopyright © 2017. All rights reserved.