Table of Contents

Class LocationConverter

Namespace
EasyAR.Mega.Scene
Assembly
EasyAR.Mega.Scene.dll

Ein Konverter für GPS-Daten und Unity-Transformationen. Kann nur verwendet werden, wenn das Koordinatensystem mit dem Mega Block ausgerichtet ist.

public static class LocationConverter
Vererbung
LocationConverter

Methoden

LocationToPosition(Transform, Location?, Transform, Location?)

Verschiebung des aktuellen Punkts anhand von GPS-Werten und bekannten Punkten anpassen.

public static void LocationToPosition(Transform t, Location? l, Transform tother, Location? lother)

Parameter

t
l
tother
lother

Position(Location, Location)

Relative Verschiebung berechnen.

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

Parameter

l
lother

PositionToLocation(Transform, Transform, Location?)

GPS des aktuellen Punkts basierend auf bekannten Punkten abrufen.

public static Location? PositionToLocation(Transform t, Transform tother, Location? lother)

Parameter

t
tother
lother

Translate(Location, Vector3, Vector3)

GPS des aktuellen Punkts basierend auf bekannten GPS-Punkten berechnen.

public static Location Translate(this Location l, Vector3 from, Vector3 to)

Parameter

l
from
to