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