On Dec 14, 8:57 pm, bratliff <[email protected]> wrote:
STUPID viewer just added gratuitous line breaks again.
var AB = Math.sqrt
((x[i-1]-x[i])*(x[i-1]-x[i])+(y[i-1]-y[i])*(y[i-1]-y[i]))
var AC = Math.sqrt
((x[i-1]-x[i+1])*(x[i-1]-x[i+1])+(y[i-1]-y[i+1])*(y[i-1]-y[i+1]))
var BC = Math.sqrt
((x[i]-x[i+1])*(x[i]-x[i+1])+(y[i]-y[i+1])*(y[i]-y[i+1]))
The spelling errors are my fault.
Relative:
(AB+BC) / AC < whatever
Absolute:
(AB+BC) - AC < whatever
I left out a key first step. Identical or almost identical points are
eliminated first. The average of the cluster replaces the points in
the cluster. Everything is done in pixels at zoom level 17.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---