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
▼
Math
AngleLowPassFilter.cs
CatmullRomCurve.cs
CatmullRomSpline.cs
Curve.cs
DVector2.cs
DVector3.cs
Line.cs
LinearSpline.cs
LowPassFilter.cs
MathUtils.cs
Spline.cs
►
ScriptableObjects
►
Utils
ARLocation.cs
•
All
Classes
Namespaces
Functions
Variables
Properties
Events
Pages
LowPassFilter.cs
1
namespace
ARLocation
2
{
3
public
class
LowPassFilter
4
{
5
private
double
lastValue;
6
public
double
smoothFactor;
7
8
public
LowPassFilter
(
double
smoothFactor = 0.5f)
9
{
10
this.smoothFactor = smoothFactor;
11
}
12
13
public
double
Apply(
double
value)
14
{
15
if
(!(smoothFactor > 0.0))
16
{
17
return
value;
18
}
19
20
lastValue = smoothFactor * lastValue + (1 - smoothFactor) * value;
21
22
return
lastValue;
23
}
24
}
25
}
ARLocation.LowPassFilter
Definition:
LowPassFilter.cs:4
ARLocation
Definition:
ARLocationConfigInspector.cs:7
Assets
ARLocation
Scripts
Math
LowPassFilter.cs
Generated by
1.8.20