edu.nps.moves.disutil
Class CoordinateTransformer

java.lang.Object
  extended by edu.nps.moves.disutil.CoordinateTransformer

public abstract class CoordinateTransformer
extends java.lang.Object

Abstract superclass for doing global coordinate transforms. Given a Vector3Double that specifies the location of an entity in the world, transforms it from a given initial coordinate system (such as lat/lon/altitude, or x/y/altitude) to another coordinate system, such as DIS earth-centered. This transformation is carried out in the concrete subclass.

Ideally you want to translate into DIS standard coordinates, but not everyone actually uses that, so I'm agnostic about whether you want to follow the standard. If you want to write a transform that puts lat/lon on the wire, that's up to you.

Author:
DMcG

Constructor Summary
CoordinateTransformer()
           
 
Method Summary
abstract  void transformLocation(Vector3Double source)
          Changes the coordinate system of the input coordinates to the target.
abstract  void transformOrientation(Vector3Float source)
          Transforms the euler angles from the source to the destination coordinate system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateTransformer

public CoordinateTransformer()
Method Detail

transformLocation

public abstract void transformLocation(Vector3Double source)
Changes the coordinate system of the input coordinates to the target.

Parameters:
source -

transformOrientation

public abstract void transformOrientation(Vector3Float source)
Transforms the euler angles from the source to the destination coordinate system.

Parameters:
source -