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