Exemple #1
0
 private void SaveLocation(Frame3D newLocation, double totalTime)
 {
     if (newLocation.Equals(_lastLocation))
     {
         _isCurrentlyMoving = false;
         return;
     }
     if (!_isCurrentlyMoving)
     {
         Movements.Add(new Movement(totalTime));
         _isCurrentlyMoving = true;
     }
     _lastLocation = newLocation;
     Movements.Last().SaveLocation(newLocation);
 }