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 AccumulateVector(MotionPoint mp)
        {
            if (_roomService.IsProperVector(Start, mp))
            {
                var vector = new MotionVector(Start, mp);
                if (!_vectorsHistory.Contains(vector))
                {
                    _vectorsHistory.Add(vector);
                    _vectors.Add(vector);
                }
            }

            return(this);
        }