|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.disutil.CoordinateTransformer
public abstract class CoordinateTransformer
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.
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 |
---|
public CoordinateTransformer()
Method Detail |
---|
public abstract void transformLocation(Vector3Double source)
source
- public abstract void transformOrientation(Vector3Float source)
source
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |