Restricting mouse darg within a semi circle

Hi All,

I have a need to develop an application which restricts object movement within a semi circle. Object can be dragged using mouse.

Any ideas or clue to solve this problem do let me know