Table of Contents

Class LocationConverter

Spazio dei nomi
EasyAR.Mega.Scene
Assembly
EasyAR.Mega.Scene.dll

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

t
l
tother
lother

Position(Location, Location)

Calcola lo spostamento relativo.

public static Vector3 Position(this Location l, Location lother)

Parametri

l
lother

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

t
tother
lother

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

l
from
to