public class ProjectionMerc extends Projection
Mercator projection. Show Earth flatly spread out on rectangle.
© 2002 Christian Treber, [email protected]
Constructor and Description |
---|
ProjectionMerc() |
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, setViewRotation
public boolean isVisible(Point3D pPoint)
All of Earth is visible.
isVisible
in class Projection
pPoint
- public Coordinate getLocation(int pX, int pY)
Projection
Translate screen point into coordinate on Earth.
getLocation
in class Projection
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().
setScale
in class Projection
public double projectX(double pX, double pZ)
Projection
Project 3D point on x axis.
projectX
in class Projection
public double inverseProjectX(double pX)
inverseProjectX
in class Projection
public double projectY(double pY)
Projection
Project 3D point on y axis.
projectY
in class Projection
public double inverseProjectY(double y)
inverseProjectY
in class Projection
Copyright © 2016. All Rights Reserved.