| 2025 | } |
| 2026 | |
| 2027 | void SetupBoxRotation(double elevation, double azimuth, bool animate, ImPlot3DCond cond) { |
| 2028 | // Convert angles from degrees to radians |
| 2029 | double elev_rad = elevation * IM_PI / 180.0; |
| 2030 | double azim_rad = azimuth * IM_PI / 180.0; |
| 2031 | |
| 2032 | // Call quaternion SetupBoxRotation |
| 2033 | SetupBoxRotation(ImPlot3DQuat::FromElAz(elev_rad, azim_rad), animate, cond); |
| 2034 | } |
| 2035 | |
| 2036 | void SetupBoxRotation(ImPlot3DQuat rotation, bool animate, ImPlot3DCond cond) { |
| 2037 | ImPlot3DContext& gp = *GImPlot3D; |
no test coverage detected