Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Find Center Point of 'N' Points
Message
From
22/12/2000 06:05:13
 
 
To
21/12/2000 16:41:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455963
Message ID:
00456217
Views:
24
>>Hi All,
>>
>>I have a need to develop an algorithm that will find the center point of 'N' other points. The total number of other points will be from 2 to 5 typically, though it could go up to around 20.
>>
>
>Simply put, your answer lies in averaging the x's, and averaging the y's, and using those averages as your center.

Depends on what you mean by centre point, it could also be midway between the max & min X & Y
Xmid = Xmin + (Xmax - Xmin) / 2
     = (Xmin + Xmax) / 2
& similarly for Y
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform