-
Notifications
You must be signed in to change notification settings - Fork 7
/
EyeData.cs
43 lines (34 loc) · 952 Bytes
/
EyeData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UXI.GazeToolkit
{
public class EyeData : EyeSample
{
public static readonly EyeData Default = new EyeData(EyeValidity.Invalid, EyeSample.Empty);
public EyeData
(
EyeValidity validity,
Point2 gazePoint2D,
Point3 gazePoint3D,
Point3 eyePosition3D,
double pupilDiameter
)
: base(gazePoint2D, gazePoint3D, eyePosition3D, pupilDiameter)
{
Validity = validity;
}
public EyeData(EyeValidity validity, EyeSample other)
: base(other)
{
Validity = validity;
}
public EyeData(EyeData other)
: this(other.Validity, other)
{
}
public EyeValidity Validity { get; } = EyeValidity.Invalid;
}
}