MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / angleBetweenAngles

Function angleBetweenAngles

Gui/QtColorTriangle.cpp:920–928  ·  view source on GitHub ↗

! \internal Returns true if the point cos(p),sin(p) is on the arc between cos(a1),sin(a1) and cos(a2),sin(a2); otherwise returns false. */

Source from the content-addressed store, hash-verified

918 cos(a1),sin(a1) and cos(a2),sin(a2); otherwise returns false.
919*/
920bool angleBetweenAngles(double p, double a1, double a2)
921{
922 if (a1 > a2) {
923 a2 += TWOPI;
924 if (p < PI) p += TWOPI;
925 }
926
927 return p >= a1 && p < a2;
928}
929
930/*! \internal
931

Callers 1

movePointToTriangleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected