Trigonometry is used in computer graphics to calculate angles, distances, and positions of objects in 3D environments.