mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0033445: Coding - Changing binary XOR in boolean expression
Changed binary XOR to the ternary operator.
This commit is contained in:
parent
ae1683705e
commit
73914537d1
@ -597,7 +597,7 @@ TopoDS_Edge ChFi2d_FilletAlgo::Result(const gp_Pnt& thePoint, TopoDS_Edge& theEd
|
|||||||
gp_Vec aCircleDir;
|
gp_Vec aCircleDir;
|
||||||
aCircle->D1(aParam1, aPoint1, aCircleDir);
|
aCircle->D1(aParam1, aPoint1, aCircleDir);
|
||||||
|
|
||||||
if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ^ aIsOut)
|
if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ? !aIsOut : aIsOut)
|
||||||
aStart = aNearest->getParam();
|
aStart = aNearest->getParam();
|
||||||
else
|
else
|
||||||
anEnd = aNearest->getParam();
|
anEnd = aNearest->getParam();
|
||||||
@ -619,7 +619,7 @@ TopoDS_Edge ChFi2d_FilletAlgo::Result(const gp_Pnt& thePoint, TopoDS_Edge& theEd
|
|||||||
|
|
||||||
aCircle->D1(aParam2, aPoint2, aCircleDir);
|
aCircle->D1(aParam2, aPoint2, aCircleDir);
|
||||||
|
|
||||||
if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ^ (!aIsOut))
|
if ((aCircleDir.Angle(aDir) > M_PI / 2.0) ? aIsOut : !aIsOut)
|
||||||
aStart = aNearest->getParam2();
|
aStart = aNearest->getParam2();
|
||||||
else
|
else
|
||||||
anEnd = aNearest->getParam2();
|
anEnd = aNearest->getParam2();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user