! \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. */
| 918 | cos(a1),sin(a1) and cos(a2),sin(a2); otherwise returns false. |
| 919 | */ |
| 920 | bool 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 |