so I've been working on this problem for a few days. The aim was to produce a radius search of data based on a users current location ( A Lat/Lon ). How ever I want to add some intelligence to the search by calculating B Lat/Lon & B Lat/Lon ( which I can do ) then from the radius search I do remove any matching GPS points within this triangle....
The closest I have mananaged to get to is matching B to C but not the points included up to A...
This is part maths and part MySQL as that is the eventual method I want to use to implement this.
Any thoughts ?
Terran
From else where
Q:Why are there radii around B and C if the only radius you want to return results in is A? AThis are simply to show the lat long of each point... I've added an additional diagram to show how this would be used.
Q:What do B and C actually represent (A is current location) A: B and C will be locations worked out ( via maths ) based on the users current location, bearing and speed.
"It's easy to test if a point is in a triangle - think cross products of triangle edge vectors and vectors from triangle corners to test point. Inside points are inside all three sides."
Link - Inside Triangle Calc - http://www.mathworks.com/matlabcentral/fileexchange/22690-inside-triangle/content/inside_triangle.m