photospace.space
Class Calculator

java.lang.Object
  extended byphotospace.space.Calculator
All Implemented Interfaces:
java.io.Serializable

public class Calculator
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Calculator()
           
 
Method Summary
static UTMPoint[] getBounds(UTMPoint[] points, java.awt.Dimension size, int metersPerPixel)
          Determine a region defined by two UTMPoints that is centered on the set of points provided.
static void main(java.lang.String[] args)
           
static UTMPoint toUTMPoint(Position position)
           
static UTMPoint[] toUTMPoint(Position[] positions)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Calculator

public Calculator()
Method Detail

toUTMPoint

public static UTMPoint[] toUTMPoint(Position[] positions)

toUTMPoint

public static UTMPoint toUTMPoint(Position position)

getBounds

public static UTMPoint[] getBounds(UTMPoint[] points,
                                   java.awt.Dimension size,
                                   int metersPerPixel)
Determine a region defined by two UTMPoints that is centered on the set of points provided. Center is determined by averaging the height and width properties of the points. This may not work if the points are not in the same UTM zone or hemisphere.


main

public static void main(java.lang.String[] args)