toArcFlags converts to the largeArc and sweep boolean flags given its value in the path.
(f float64)
| 84 | |
| 85 | // toArcFlags converts to the largeArc and sweep boolean flags given its value in the path. |
| 86 | func toArcFlags(f float64) (bool, bool) { |
| 87 | large := (f == 1.0 || f == 3.0) |
| 88 | sweep := (f == 2.0 || f == 3.0) |
| 89 | return large, sweep |
| 90 | } |
| 91 | |
| 92 | // fromArcFlags converts the largeArc and sweep boolean flags to a value stored in the path. |
| 93 | func fromArcFlags(large, sweep bool) float64 { |
no outgoing calls
no test coverage detected