views:

129

answers:

2

hi,

I am working on a iphone GPS stuff. I have the 4 GPS co ordinates of a building. Is there a way to find out whether a particular GPS coordinates is inside this 4 co ordinates. That is to find out whether a person is inside the building.

A: 

It's a pretty simple geometry problem. You know how to test if a point is within a triangle, right? The quadrilateral is just two triangles stuck together.

NSResponder