Exemplo n.º 1
0
		/// <summary>Rotates the vector.</summary>
		public Velocity Rotate(Angle angle)
		{
			var nX = angle.Cos() * X - angle.Sin() * Y;
			var nY = angle.Sin() * X + angle.Cos() * Y;
			return new Velocity(nX, nY);
		}