MCPcopy Create free account
hub / github.com/brenocq/implot3d / SetupBoxRotation

Function SetupBoxRotation

implot3d.cpp:2027–2034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025}
2026
2027void 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
2036void SetupBoxRotation(ImPlot3DQuat rotation, bool animate, ImPlot3DCond cond) {
2037 ImPlot3DContext& gp = *GImPlot3D;

Callers 1

DemoBoxRotationFunction · 0.85

Calls 1

CalcAnimationTimeFunction · 0.85

Tested by

no test coverage detected