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