|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Fraction along an angular sweep about center.
Inverse to radial, which places the indicator at angle_start + value * (angle_end - angle_start). Handles sweeps in either direction and sweeps crossing the atan2 discontinuity. The cursor's distance from the centre is ignored, so the control remains responsive outside the drawn radius, which is what a knob gesture expects.
Points at the exact centre return zero rather than an undefined angle.
| center | Sweep centre in NDC. |
| angle_start | Angle in radians corresponding to value 0. |
| angle_end | Angle in radians corresponding to value 1. |
Definition at line 90 of file Projection.hpp.
Referenced by angle_fraction(), and MayaFlux::Portal::Forma::Geometry::radial().
Here is the caller graph for this function: