23#include "guillaume/components/arc.hpp"
30 , _sweepAngle(3.14159265358979323846f)
42 if (_thickness == thickness) {
45 _thickness = thickness;
57 if (_startAngle == startAngle) {
60 _startAngle = startAngle;
72 if (_sweepAngle == sweepAngle) {
75 _sweepAngle = sweepAngle;
87 if (_segments == segments) {
float getSweepAngle(void) const
Get the angle the arc covers.
Arc & setStartAngle(float startAngle)
Set the angle the arc starts at.
Arc & setThickness(float thickness)
Set the thickness of the arc.
int SegmentCount
A number of straight segments.
Arc & setSegments(SegmentCount segments)
Set how many straight segments approximate the arc.
SegmentCount getSegments(void) const
Get how many straight segments approximate the arc.
Arc(void)
Construct a half circle: 8 dp thick, starting at angle 0, covering pi radians, drawn with 48 segments...
float getStartAngle(void) const
Get the angle the arc starts at.
Arc & setSweepAngle(float sweepAngle)
Set the angle the arc covers from its start angle.
float getThickness(void) const
Get the thickness of the arc.
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
State. Every class here is plain data attached to an entity.