Table of Contents

Class LocationConverter

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

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

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 current point's GPS 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 current point's GPS based on the known point's GPS.

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

Parameters

l
from
to

Returns