Table of Contents

Class LocationConverter

Пространство имен
EasyAR.Mega.Scene
Сборка
EasyAR.Mega.Scene.dll

Преобразователь данных GPS и преобразований Unity. Может использоваться только при совпадении системы координат с Mega Block.

public static class LocationConverter
Наследование
LocationConverter

Методы

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

Корректировать смещение текущей точки с помощью значений GPS и известных точек.

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

Параметры

t
l
tother
lother

Position(Location, Location)

Рассчитать относительное смещение.

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

Параметры

l
lother

PositionToLocation(Transform, Transform, Location?)

Получить GPS текущей точки на основе известных точек.

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

Параметры

t
tother
lother

Translate(Location, Vector3, Vector3)

Определить текущую GPS-точку на основе GPS известных точек.

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

Параметры

l
from
to