|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Form< float > MayaFlux::Portal::Forma::Geometry::radial | ( | Kinesis::AABB2D | region, |
| float | angle_start, | ||
| float | angle_end, | ||
| glm::vec3 | color = glm::vec3(0.9F), |
||
| const std::function< glm::vec2()> & | live_offset = {} |
||
| ) |
Geometry function for a radial indicator in NDC space.
| region | NDC region the arc is inscribed in. |
| angle_start | Start angle in radians (value = 0). |
| angle_end | End angle in radians (value = 1). |
| color | Line color. |
| live_offset | Optional. Current translation of the drawn indicator. |
Definition at line 92 of file FormFactory.cpp.
References MayaFlux::Kinesis::angle_fraction(), MayaFlux::Kinesis::AABB2D::center(), MayaFlux::Kinesis::circular_bounds(), color, MayaFlux::Kinesis::AABB2D::from_ndc(), MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Portal::Graphics::LINE_LIST, out, MayaFlux::Kakshya::LineVertex::position, radius, MayaFlux::Kinesis::AABB2D::width(), and write_verts().
Here is the call graph for this function: