GPv3: Refactor code for the hard eraser #111390
@ -115,11 +115,11 @@ struct EraseOperationExecutor {
|
||||
|
||||
struct SegmentCircleIntersection {
|
||||
/* Position of the intersection in the segment. */
|
||||
float factor{0.0f};
|
||||
float factor = 0.0f;
|
||||
amelief marked this conversation as resolved
Outdated
|
||||
|
||||
/* True if the intersection corresponds to an inside/outside transition with respect to the
|
||||
* circle, false if it corresponds to an outside/inside transition . */
|
||||
bool inside_outside_intersection{false};
|
||||
bool inside_outside_intersection = false;
|
||||
};
|
||||
enum PointCircleSide { Outside, OutsideInsideBoundary, InsideOutsideBoundary, Inside };
|
||||
amelief marked this conversation as resolved
Outdated
Hans Goudey
commented
`enum class` is generally preferred since it requires each item to be scoped with the name of the enum. Though it's a bit longer, the context is usually helpful when reading code.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
It's not in the style guide I guess, but usually these defaults are written with
=