A worked real-world example: a research vessel's angled sonar beam returns a slant range at a known beam angle; sine gives the straight-down depth and cosine the horizontal offset — the geometry of seabed mapping — shown on an animated underwater scene you can adjust.
A sonar beam sent at a known angle below the horizontal returns a slant distance. The depth straight down is that slant range times the sine of the beam angle, while the cosine gives how far ahead the seabed point lies.
Why not just point the beam straight down?
Straight-down (single-beam) sounders do exist, but angled and fan-shaped (multibeam) sonar map a wide swath of seabed in one pass, locate features ahead of the vessel, and find slopes and reefs a vertical beam would miss.
How is the slant range itself found?
Sonar measures the time for the ping to travel out and echo back, then multiplies half that time by the speed of sound in water (about 1500 m/s). That gives the slant distance the trigonometry then resolves into depth.
What affects the accuracy?
The speed of sound varies with water temperature, salinity and pressure, so surveys calibrate for local conditions. The beam angle and the vessel's motion must also be tracked precisely for accurate depth and position.
Where is this used in real life?
Marine biologists map seabed habitats and locate reefs and fish shoals, hydrographers chart safe shipping channels, and offshore engineers survey sites for cables and platforms — all using the angled-beam depth triangle.