Path: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:37:49 -05:00
parent 6f230d7404
commit 5f31fb74f6
18 changed files with 411 additions and 204 deletions

View File

@@ -93,11 +93,14 @@ bool Circle::LineIsOn(const Point& p0, const Point& p1, double accuracy)
{
// checks the points are on the arc, to the given accuracy, and the mid point of the line.
if(!PointIsOn(p0, accuracy))return false;
if(!PointIsOn(p1, accuracy))return false;
if(!PointIsOn(p0, accuracy))
return false;
if(!PointIsOn(p1, accuracy))
return false;
Point mid = Point((p0 + p1)/2);
if(!PointIsOn(mid, accuracy))return false;
if(!PointIsOn(mid, accuracy))
return false;
return true;
}