示例#1
0
		public void ComputeCenter()
		{
			if (_current.Pixel > 0)
			{
				_current.ComputeCenter();
				if (_previous.Pixel > 0)
				{
					var dX = _current.CenterX - _previous.CenterX;
					var dY = _current.CenterY - _previous.CenterY;
					Movement += Math.Sqrt(dX * dX + dY * dY);
				}
			}
		}