org.cresques.geo
Class Orthographic

java.lang.Object
  extended byorg.cresques.geo.Orthographic

public final class Orthographic
extends java.lang.Object

Orthographic Map projection computation

Version:
$Revision$ $Date$ Copyright (c) Raben Systems, Inc., 2002 All rights reserved
Author:
Vern Raben

Constructor Summary
Orthographic()
          Creates new OrthographicMapProjection
 
Method Summary
 java.awt.geom.Point2D getCoordinateForLocation(java.awt.geom.Point2D loc)
          Get coordinate for a given point on the screen
 java.awt.geom.Point2D getLocationForCoordinate(java.awt.geom.Point2D coordinate)
          Get Screen location for specified coordinate in radians
 java.awt.geom.GeneralPath getOverlayGridPath()
          Get overlay grid for map as a path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orthographic

public Orthographic()
Creates new OrthographicMapProjection

Method Detail

getLocationForCoordinate

public java.awt.geom.Point2D getLocationForCoordinate(java.awt.geom.Point2D coordinate)
Get Screen location for specified coordinate in radians

Parameters:
coordinate - Point2D Longitude and latitude of coordinate in radians
Returns:
Point2D Screen location of the coordinate

getCoordinateForLocation

public java.awt.geom.Point2D getCoordinateForLocation(java.awt.geom.Point2D loc)
Get coordinate for a given point on the screen

Parameters:
loc - Point2D Screen location of the point
Returns:
Point2D Coordinate of the point in radians

getOverlayGridPath

public java.awt.geom.GeneralPath getOverlayGridPath()
Get overlay grid for map as a path

Returns:
GeneralPath to draw mapOverlay.