|
MayaFlux 1.0.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.
Angles outside the sweep fall in a dead zone and snap to whichever end is nearer, so a knob dragged past its minimum stays at 0 instead of jumping to 1.
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. |
| live_offset | Optional. Current translation of the drawn control. |
Definition at line 111 of file Projection.hpp.
Referenced by MayaFlux::Portal::Forma::Geometry::radial().
Here is the caller graph for this function: