thndrkiss
thndrkiss

Reputation: 4595

how to find whether a person is inside a building using gps co ordinates

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.

Upvotes: 1

Views: 478

Answers (2)

NSResponder
NSResponder

Reputation: 16861

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.

Upvotes: 1

Related Questions