Package gov.sandia.gnem.slbmjni
Class Point
java.lang.Object
gov.sandia.gnem.slbmjni.Point
public class Point
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description double[]u -
Constructor Summary
Constructors Constructor Description Point(double lat, double lon, boolean inDegrees)Point constructorPoint(GridProfile profile) -
Method Summary
Modifier and Type Method Description static doubledot(double[] v0, double[] v1)booleanequals(java.lang.Object other)static double[]getVector(double lat, double lon)Convert geographic lat, lon into a geocentric unit vector.static voidgetVector(double lat, double lon, double[] vector)Convert geographic lat, lon into a geocentric unit vector.inthashCode()
-
Field Details
-
u
public double[] u
-
-
Constructor Details
-
Method Details
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
dot
public static double dot(double[] v0, double[] v1) -
getVector
public static double[] getVector(double lat, double lon)Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, PI/2. The z-component points toward north pole.- Parameters:
lat- geographic latitude in radians.lon- longitude in radians.- Returns:
- 3 component unit vector.
-
getVector
public static void getVector(double lat, double lon, double[] vector)Convert geographic lat, lon into a geocentric unit vector. The x-component points toward lat,lon = 0, 0. The y-component points toward lat,lon = 0, PI/2 The z-component points toward north pole.- Parameters:
lat- geographic latitude in radians.lon- longitude in radians.vector- 3 component unit vector.
-