|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ctreber.acearth.projection.Projection
com.ctreber.acearth.projection.ProjectionOrtho
public class ProjectionOrtho
Orthographic projection (show Earth as a ball).
© 2002 Christian Treber, [email protected]
Constructor Summary | |
---|---|
ProjectionOrtho()
|
Method Summary | |
---|---|
Coordinate |
getLocation(int pX,
int pY)
Translate screen point into coordinate on Earth. |
double |
inverseProjectX(double pX)
|
double |
inverseProjectY(double pY)
|
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 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 com.ctreber.acearth.projection.Projection |
---|
finalize, finalizeX, finalizeY, getScale, getViewPos, initTransformTable, inverseFinalizeX, inverseFinalizeY, isWithinImage, project2D, rotate, rotateReverse, setImageHeight, setImageWidth, setShiftX, setShiftY, setViewMagnification, setViewPos, setViewRotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectionOrtho()
Method Detail |
---|
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
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 pY)
inverseProjectY
in class Projection
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).
setScale
in class Projection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |