public EyeSampleAggregate Subtract(EyeSample eye)
        {
            GazePoint2D   -= eye.GazePoint2D;
            GazePoint3D   -= eye.GazePoint3D;
            EyePosition3D -= eye.EyePosition3D;
            PupilDiameter -= eye.PupilDiameter;

            return(this);
        }
        public EyeSampleAggregate Add(EyeSample eye)
        {
            GazePoint2D   += eye.GazePoint2D;
            GazePoint3D   += eye.GazePoint3D;
            EyePosition3D += eye.EyePosition3D;
            PupilDiameter += eye.PupilDiameter;

            return(this);
        }
Exemplo n.º 3
0
 public EyeMovement
 (
     EyeMovementType type,
     EyeSample averageSample,
     DateTimeOffset timestamp,
     DateTimeOffset endTimestamp
 )
     : this
     (
         type,
         timestamp,
         endTimestamp
     )
 {
     AverageSample = averageSample;
 }
Exemplo n.º 4
0
 public EyeMovement
 (
     EyeMovementType type,
     IEnumerable <EyeVelocity> samples,
     EyeSample averageSample,
     DateTimeOffset timestamp,
     DateTimeOffset endTimestamp
 )
     : this
     (
         type,
         averageSample,
         timestamp,
         endTimestamp
     )
 {
     Samples = samples?.ToList() ?? Samples;
 }
Exemplo n.º 5
0
 public EyeData(EyeValidity validity, EyeSample other)
     : base(other)
 {
     Validity = validity;
 }
 public EyeSampleAggregate(EyeSample initial)
     : this()
 {
     Add(initial);
 }
Exemplo n.º 7
0
 public EyeSample(EyeSample other)
     : this(other.GazePoint2D, other.GazePoint3D, other.EyePosition3D, other.PupilDiameter)
 {
 }