Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Find Center Point of 'N' Points
Message
De
22/12/2000 06:05:13
 
 
À
21/12/2000 16:41:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00455963
Message ID:
00456217
Vues:
26
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform