photospace.space
Class Calculator
java.lang.Object
photospace.space.Calculator
- All Implemented Interfaces:
- java.io.Serializable
- public class Calculator
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Calculator
public Calculator()
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)