AR + GPS Location
3.0.0
Main Page
Related Pages
Packages
Packages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Functions
c
d
e
f
g
h
l
n
o
p
r
s
t
u
v
Variables
a
c
d
h
i
l
m
o
p
s
t
u
x
Properties
Events
Files
File List
▼
AR + GPS Location
3.5.1
Unity AR+GPS Location
►
Packages
►
Classes
▼
Files
▼
File List
▼
Assets
▼
ARLocation
►
Editor
▼
Scripts
►
ARSession
►
Components
▼
Location
AbstractLocationProvider.cs
AndroidMagneticDeclination.cs
AndroidNativeCompass.cs
HeadingReading.cs
ILocationProvider.cs
Location.cs
LocationReading.cs
MockLocationProvider.cs
UnityLocationProvider.cs
►
Math
►
ScriptableObjects
►
Utils
ARLocation.cs
•
All
Classes
Namespaces
Functions
Variables
Properties
Events
Pages
LocationReading.cs
1
namespace
ARLocation
2
{
3
4
public
struct
LocationReading
5
{
6
public
double
latitude;
7
public
double
longitude;
8
public
double
altitude;
9
public
double
accuracy;
10
public
int
floor;
11
15
public
long
timestamp
;
16
17
public
Location
ToLocation()
18
{
19
return
new
Location
(latitude, longitude, altitude);
20
}
21
22
public
static
double
HorizontalDistance(
LocationReading
a,
LocationReading
b)
23
{
24
return
Location
.
HorizontalDistance
(a.ToLocation(), b.ToLocation());
25
}
26
27
public
override
string
ToString()
28
{
29
return
30
"LocationReading { \n"
+
31
" latitude = "
+ latitude +
"\n"
+
32
" longitude = "
+ longitude +
"\n"
+
33
" altitude = "
+ altitude +
"\n"
+
34
" accuracy = "
+ accuracy +
"\n"
+
35
" floor = "
+ floor +
"\n"
+
36
" timestamp = "
+
timestamp
+
"\n"
+
37
"}"
;
38
}
39
}
40
}
ARLocation.Location
Represents a geographical location.
Definition:
Location.cs:19
ARLocation.Location.HorizontalDistance
static double HorizontalDistance(Location l1, Location l2)
Calculates the horizontal distance according to the current function set in the configuration.
Definition:
Location.cs:214
ARLocation.LocationReading.timestamp
long timestamp
Epoch time in ms
Definition:
LocationReading.cs:15
ARLocation.LocationReading
Definition:
LocationReading.cs:5
ARLocation
Definition:
ARLocationConfigInspector.cs:7
Assets
ARLocation
Scripts
Location
LocationReading.cs
Generated by
1.8.20