Table of Contents

Class LocationConverter

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

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

t
l
tother
lother

Position(Location, Location)

Calculate relative displacement.

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

Parameters

l
lother

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

t
tother
lother

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

l
from
to

Returns