Package georegression.geometry
Class ConvertCoordinates3D_F64
java.lang.Object
georegression.geometry.ConvertCoordinates3D_F64
Contains code for converting between different 3D coordinate systems
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends GeoTuple3D_F64<T>>
TlatlonToUnitVector
(double lat, double lon, T vector) Converts latitude and longitude coordinates into a unit vector
-
Constructor Details
-
ConvertCoordinates3D_F64
public ConvertCoordinates3D_F64()
-
-
Method Details
-
latlonToUnitVector
public static <T extends GeoTuple3D_F64<T>> T latlonToUnitVector(double lat, double lon, @Nullable T vector) Converts latitude and longitude coordinates into a unit vector- Parameters:
lat
- Radian value from pi to -pilon
- Radian value from -pi/2 to pi/2vector
- (output) Storage for unit vector. If null is passed in a new instance will be created.- Returns:
- Unit vector
-