This is for a real life situation not a theoretical one. I'm trying to check if a point exist in a Segment of a 2d circle. In other words, I need to know if a given point P(x,y) is anywhere inside the blue part of the circle (see image below).
Given The radius, the center $(x, y)$, point $A(x,y)$, point $B(x,y)$. The point $P(x,y)$ is also given and I need to know if it's inside or outside the Circle's segment.
What I don't know The Arc Length and the Center Angle of the Sector.

You can figure out if it is in the segment by finding out what angles bound the box, what the radius of the circle is, and the equation of the line between A and B. If the angle from $O(x,y)$ to $P(x,y)$ is between angle OA and OB, and the radius is between $y_{AB}$ and R, then the point is in the segment.
$\angle OA = \tan^{-1}\big(\frac{x_A-x_O}{y_A-y_O}\big)$
$\angle OB = \tan^{-1}\big(\frac{x_B-x_O}{y_B-y_O}\big)$
$\angle OP = \tan^{-1}\big(\frac{x_P-x_O}{y_P-y_O}\big)$
$R = \sqrt{(x_A-x_O)^2+(y_A-y_O)^2}$
and the equation of the line AB is:
$y_{AB} = \frac{y_B-y_A}{x_B-x_A}x+y_A$