Class LocationConverter
Convertitore per dati GPS e trasformazioni Unity. Può essere utilizzato solo quando il sistema di coordinate è allineato con Mega Block.
public static class LocationConverter
- Ereditarietà
-
LocationConverter
Metodi
LocationToPosition(Transform, Location?, Transform, Location?)
Regola lo spostamento del punto corrente tramite i valori GPS e il punto noto.
public static void LocationToPosition(Transform t, Location? l, Transform tother, Location? lother)
Parametri
tltotherlother
Position(Location, Location)
Calcola lo spostamento relativo.
public static Vector3 Position(this Location l, Location lother)
Parametri
llother
PositionToLocation(Transform, Transform, Location?)
Ottieni il GPS del punto corrente in base al punto noto.
public static Location? PositionToLocation(Transform t, Transform tother, Location? lother)
Parametri
ttotherlother
Translate(Location, Vector3, Vector3)
Calcola il GPS del punto corrente in base al GPS del punto noto.
public static Location Translate(this Location l, Vector3 from, Vector3 to)
Parametri
lfromto