public class CoordSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Point3d |
ll
Lower left corner of the bounding box in local coordinates.
|
Point3d |
ur
Upper right corner of the bounding box in local coordinates.
|
Modifier | Constructor and Description |
---|---|
protected |
CoordSystem()
Only ever called by the subclass.
|
Modifier and Type | Method and Description |
---|---|
static Point3d |
CoordSystemConvert3d(CoordSystem inSystem,
CoordSystem outSystem,
Point3d inCoord)
Convert the coordinate between systems.
|
void |
finalize() |
Point3d |
geocentricToLocal(Point3d pt)
Convert from geocentric to the local coordinate system.
|
Point3d |
geographicToLocal(Point3d pt)
Convert from WGS84 longitude/latitude coordinates to the local coordinate system.
|
Mbr |
getBounds()
Return the valid bounding box for the coordinate system.
|
Point3d |
localToGeocentric(Point3d pt)
Convert from the local coordinate system to Geocentric
|
Point3d |
localToGeographic(Point3d pt)
Convert from the local coordinate system to WGS84 longitude/latitude in radians.
|
void |
setBounds(Mbr mbr)
Set the bounding box for the coordinate system.
|
public Point3d ll
public Point3d ur
protected CoordSystem()
public void finalize()
finalize
in class java.lang.Object
public Mbr getBounds()
public void setBounds(Mbr mbr)
mbr
- public Point3d geographicToLocal(Point3d pt)
pt
- The input coordinate in longitude/latitude WGS84 radians. Yes, radians.public Point3d localToGeographic(Point3d pt)
pt
- A point in the local coordinate system.public Point3d localToGeocentric(Point3d pt)
pt
- A point in the local coordinate system.public Point3d geocentricToLocal(Point3d pt)
pt
- A point in geocentricpublic static Point3d CoordSystemConvert3d(CoordSystem inSystem, CoordSystem outSystem, Point3d inCoord)
inSystem
- The system the coordinate is in.outSystem
- The system the coordinate you want it in.inCoord
- The coordinate.