Narrative:

While on downwind for runway xx at ZZZ; I heard a twin-engine cessna announce he was departing westbound before takeoff on runway xx. The offending aircraft took off; then turned west before reaching pattern altitude and cut across downwind leg (runway xx) at pattern altitude between two other aircraft. I estimate that the offending aircraft missed my aircraft by approximately 300 ft.

Google
 

Original NASA ASRS Text

Title: Pilot reported a near mid air collision while conducting flight training in the VFR traffic pattern.

Narrative: While on downwind for Runway XX at ZZZ; I heard a twin-engine Cessna announce he was departing westbound before takeoff on Runway XX. The offending aircraft took off; then turned west before reaching pattern altitude and cut across downwind leg (Runway XX) at pattern altitude between two other aircraft. I estimate that the offending aircraft missed my aircraft by approximately 300 ft.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.