public interface GeographicProjection
Modifier and Type | Method and Description |
---|---|
Position |
cartesianToGeographic(Globe globe,
double x,
double y,
double z,
Position result)
Converts a Cartesian point to a geographic position.
|
Matrix4 |
cartesianToLocalTransform(Globe globe,
double x,
double y,
double z,
Matrix4 result) |
Vec3 |
geographicToCartesian(Globe globe,
double latitude,
double longitude,
double altitude,
Vec3 result)
Converts a geographic position to Cartesian coordinates.
|
float[] |
geographicToCartesianBorder(Globe globe,
Sector sector,
int numLat,
int numLon,
float height,
Vec3 origin,
float[] result) |
float[] |
geographicToCartesianGrid(Globe globe,
Sector sector,
int numLat,
int numLon,
float[] height,
float verticalExaggeration,
Vec3 origin,
float[] result,
int offset,
int rowStride) |
Vec3 |
geographicToCartesianNormal(Globe globe,
double latitude,
double longitude,
Vec3 result) |
Matrix4 |
geographicToCartesianTransform(Globe globe,
double latitude,
double longitude,
double altitude,
Matrix4 result) |
java.lang.String |
getDisplayName()
This projection's display name.
|
boolean |
intersect(Globe globe,
Line line,
Vec3 result)
Computes the first intersection of a specified globe and line.
|
java.lang.String getDisplayName()
Vec3 geographicToCartesian(Globe globe, double latitude, double longitude, double altitude, Vec3 result)
globe
- the globe this projection is applied tolatitude
- the position's latitude in degreeslongitude
- the position's longitude in degreesaltitude
- the position's altitude in metersresult
- a pre-allocated Vec3
in which to store the computed X, Y and Z Cartesian coordinatesjava.lang.IllegalArgumentException
- If any argument is nullVec3 geographicToCartesianNormal(Globe globe, double latitude, double longitude, Vec3 result)
Matrix4 geographicToCartesianTransform(Globe globe, double latitude, double longitude, double altitude, Matrix4 result)
float[] geographicToCartesianGrid(Globe globe, Sector sector, int numLat, int numLon, float[] height, float verticalExaggeration, Vec3 origin, float[] result, int offset, int rowStride)
float[] geographicToCartesianBorder(Globe globe, Sector sector, int numLat, int numLon, float height, Vec3 origin, float[] result)
Position cartesianToGeographic(Globe globe, double x, double y, double z, Position result)
globe
- x
- the Cartesian point's X componenty
- the Cartesian point's Y componentz
- the Cartesian point's Z componentresult
- a pre-allocated Position
in which to store the computed geographic positionjava.lang.IllegalArgumentException
- if the result is nullMatrix4 cartesianToLocalTransform(Globe globe, double x, double y, double z, Matrix4 result)
boolean intersect(Globe globe, Line line, Vec3 result)
globe
- the globe this projection is applied toline
- the line to intersect with the globeresult
- a pre-allocated Vec3
in which to return the computed pointjava.lang.IllegalArgumentException
- If any of the globe, line or result are null