public class Location
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Location |
fromDegrees(double latDeg,
double longDeg)
Returns a Location representing the supplied degree co-ordinates.
|
static Location |
fromRadians(double latRad,
double longRad)
Returns a Location representing the supplied radian co-ordinates.
|
static Location |
fromVec3(Vec3 vector) |
static java.util.List<java.lang.String> |
getEmptyFields()
Returns a list of empty strings equal in length to the number of
parameters.
|
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings.
|
double |
getLatDeg() |
double |
getLatRad() |
double |
getLongDeg() |
double |
getLongRad() |
java.util.List<java.lang.String> |
toStrings()
Returns the VGP parameters as a list of strings.
|
Vec3 |
toVec3() |
public double getLatDeg()
public double getLongDeg()
public double getLatRad()
public double getLongRad()
public static Location fromDegrees(double latDeg, double longDeg)
latDeg
- latitude of the Location in degreeslongDeg
- longitude of the Location in degreespublic static Location fromRadians(double latRad, double longRad)
latRad
- latitude of the Location in radianslongRad
- longitude of the Location in radianspublic static java.util.List<java.lang.String> getHeaders()
public static java.util.List<java.lang.String> getEmptyFields()
public java.util.List<java.lang.String> toStrings()
getHeaders()
.public Vec3 toVec3()