simd_incircle
Tests if a double-precision point lies inside, on, or outside a circle.
Declaration
static double simd_incircle(simd_double2 __x, simd_double2 __a, simd_double2 __b, simd_double2 __c);Parameters
- __x:
The point that the function tests.
- __a:
The first point that determines the circle.
- __b:
The second point that determines the circle.
- __c:
The third point that determines the circle.
Return Value
A value that indicates whether the point lies inside, on, or outside the specified circle.
Discussion
If the points a, b, and c describe a positively- or counterclockwise-oriented circle, the function returns:
A positive value if
xis inside the circleZero if
xis on the circleA negative value if
xis outside the circle
The function flips sign of the return value if the circle is negatively- or clockwise-oriented.