faa.tg.geometry
Class OptimizedStereoMapProjection

java.lang.Object
  extended by faa.tg.geometry.OptimizedStereoMapProjection
All Implemented Interfaces:
Locale
Direct Known Subclasses:
XmlCommonParamsImporter.EramStereoMapProjection

public class OptimizedStereoMapProjection
extends java.lang.Object
implements Locale

 This is a specialized map projection tied to the WGS84 Earth Model and optimized
 for speed. 
 
See the source: OptimizedStereoMapProjection.java

Version:
$Id: OptimizedStereoMapProjection.java,v 1.1 2008/09/10 17:57:40 lykensj Exp $
Author:
lykensj, Engility Sep 9, 2008 4:22:22 PM

Field Summary
private static double A
           
private  double a0
           
private static double Ap
           
private  double b
           
private static double B
           
private static double Bp
           
private static double C
           
private  double cos_a0
           
private  double cos_X1
           
private static double Cp
           
private static double D
           
private static double Dp
           
private static double e
           
private static double e_2
           
private static double e_4
           
private static double e_6
           
private static double e_8
           
private static double eDiv2
           
private static double PI_2
           
private static double PI_4
           
private static double semiMajorAxis
           
private  double sin_a0
           
private  double sin_X1
           
 
Constructor Summary
OptimizedStereoMapProjection(Position pointOfTangency)
          Creates a stereographic projection based on the given point of tangency.
 
Method Summary
private  double convertFromConformalLat(double X)
           
private  double convertToConformalLat(double phi)
           
 Coordinate latLonToXYCoordinate(Position pos)
          Converts a Position and a distance unit to Coordinate object.
 Position xyToPosition(Coordinate coord, Altitude altitude)
          Converts xy coordinates to latitude/longitude delagating to xyToPosition(Coordinate coordinate, Altitude altitude).
 Position xyToPosition(Distance coord, Distance coord2, Altitude alt)
          Converts x-y coordinates to latitude/longitude.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cos_X1

private final double cos_X1

sin_X1

private final double sin_X1

cos_a0

private final double cos_a0

sin_a0

private final double sin_a0

a0

private final double a0

b

private final double b

e

private static final double e

eDiv2

private static final double eDiv2

e_2

private static final double e_2

e_4

private static final double e_4

e_6

private static final double e_6

e_8

private static final double e_8

semiMajorAxis

private static final double semiMajorAxis

PI_2

private static final double PI_2
See Also:
Constant Field Values

PI_4

private static final double PI_4
See Also:
Constant Field Values

A

private static final double A

B

private static final double B

C

private static final double C

D

private static final double D

Ap

private static final double Ap

Bp

private static final double Bp

Cp

private static final double Cp

Dp

private static final double Dp
Constructor Detail

OptimizedStereoMapProjection

public OptimizedStereoMapProjection(Position pointOfTangency)
Creates a stereographic projection based on the given point of tangency. The scale of the projection is 1:1 and the point of tangency is mapped to (0,0).

Parameters:
pointOfTangency - the origin of the stereographic projection. If a pole is used (latitude equal to plus or minus 90 degrees), the calculations will fail due to division by zero.
Method Detail

convertToConformalLat

private double convertToConformalLat(double phi)

convertFromConformalLat

private double convertFromConformalLat(double X)

latLonToXYCoordinate

public Coordinate latLonToXYCoordinate(Position pos)
Description copied from interface: Locale
Converts a Position and a distance unit to Coordinate object.

Specified by:
latLonToXYCoordinate in interface Locale

xyToPosition

public Position xyToPosition(Coordinate coord,
                             Altitude altitude)
Description copied from interface: Locale
Converts xy coordinates to latitude/longitude delagating to xyToPosition(Coordinate coordinate, Altitude altitude).

Specified by:
xyToPosition in interface Locale
Parameters:
coord - Coordinate to get the Position for.
altitude - Altitude of the Position.
Returns:
Position corresponding to the x-y coordinates and Altitude.

xyToPosition

public Position xyToPosition(Distance coord,
                             Distance coord2,
                             Altitude alt)
Description copied from interface: Locale
Converts x-y coordinates to latitude/longitude.

Specified by:
xyToPosition in interface Locale
Parameters:
coord - X-coordinate to get the Position for.
coord2 - Y-coordinate to get the Position for.
alt - Altitude of the Position.
Returns:
Position corresponding to the x-y coordinates and Altitude.