Example #1
0
        public MotionWindow AccumulateVector(MotionPoint mp, Func <MotionPoint, MotionPoint, bool> isProperVectorCheck)
        {
            if (isProperVectorCheck(Start, mp))
            {
                var vector = new MotionVector(Start, mp);
                if (!_vectorsHistory.Contains(vector))
                {
                    _vectorsHistory.Add(vector);
                    _vectors.Add(vector);
                }
            }

            return(this);
        }
Example #2
0
 public MotionWindow(string place, DateTimeOffset time)
 {
     Start = new MotionPoint(place, time);
 }
Example #3
0
 public bool Contains(MotionPoint p) => Start.Equals(p) || End.Equals(p);
Example #4
0
 public MotionWindow(MotionPoint start)
 {
     Start = start;
 }
Example #5
0
 public MotionVector(MotionPoint startPoint, MotionPoint endPoint)
 {
     Start = startPoint;
     End   = endPoint;
 }