I am writing an application in WPF and have come accross a problem. As seen in the picture below, I need an algorithm which determines whether or not a specified point P is inside the shaded region of the circle. The shaded region is just a portion of circle that has an orientation (where the shaded region is looking at) and an angle.

Maths first:
let v = p – c
let u = (1,0) : Using the geometry shown above
Check |v| < r
Angle = acos(v.u/|v|)
Check the angle is in range.
In WPF:
Here’s an untested class