I have defined a rectangle on a map with 4 nodes.
Each one of the nodes is a pair (X,Y)
X: latitude
Y: longitude
X,Y:geographic coordinates (with double values)
I would like to check if a point (X,Y) is inside that rectangle.
That point is going to be the current position of the user (The current position comes from the GPS output of the mobile)
Is there a specific mathematic formula for that? How can I find if a specific point belongs to a rectangle?
Cause I would like to implement it in C#.