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); }
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); }
public bool Contains(MotionPoint p) => _start.Equals(p) || _end.Equals(p);
public MotionVector(MotionPoint startPoint, MotionPoint endPoint) { _start = startPoint; _end = endPoint; }
public MotionWindow(string place, DateTimeOffset time) { Start = new MotionPoint(place, time); }
public MotionWindow(MotionPoint start) { Start = start; }
public MotionWindow(string place, DateTimeOffset time, RoomService roomService) { Start = new MotionPoint(place, time); _roomService = roomService; }
public bool Contains(MotionPoint p) => Start.Equals(p) || End.Equals(p);