Class LocationConverter
Converter for GPS data and Unity transformations. Can only be used when the coordinate system is aligned with Mega Block.
public static class LocationConverter
- Inheritance
-
LocationConverter
Methods
LocationToPosition(Transform, Location?, Transform, Location?)
Adjust the displacement of the current point using GPS values and known points.
public static void LocationToPosition(Transform t, Location? l, Transform tother, Location? lother)
Parameters
tltotherlother
Position(Location, Location)
Calculate relative displacement.
public static Vector3 Position(this Location l, Location lother)
Parameters
llother
Returns
PositionToLocation(Transform, Transform, Location?)
Obtain the GPS of the current point based on known points.
public static Location? PositionToLocation(Transform t, Transform tother, Location? lother)
Parameters
ttotherlother
Returns
Translate(Location, Vector3, Vector3)
Calculate the GPS of the current point based on known point's GPS.
public static Location Translate(this Location l, Vector3 from, Vector3 to)
Parameters
lfromto