Class LocationConverter
GPS data and Unity transformation converter. Can only be used when the coordinate system is aligned with the Mega Block.
public static class LocationConverter
- Inheritance
-
LocationConverter
Methods
LocationToPosition(Transform, Location?, Transform, Location?)
Adjust the current point's displacement through 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 current point's GPS based on known points.
public static Location? PositionToLocation(Transform t, Transform tother, Location? lother)
Parameters
ttotherlother
Returns
Translate(Location, Vector3, Vector3)
Calculate the current point's GPS based on the known point's GPS.
public static Location Translate(this Location l, Vector3 from, Vector3 to)
Parameters
lfromto