Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who's right, VB or VFP?
Message
De
09/07/2002 21:55:18
 
 
À
08/07/2002 17:08:05
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00676246
Message ID:
00676888
Vues:
24
The Fox is right of course... The Fox is always right (lol).

Since the American style of reading is from Left to Right and VFP is an American language program I would say Upward Diagonal is from Lower Left to Upper Right. Otherwise we'd be reading backwards.

Aloha,

James
>Hi Cindy,
>
>I won't argue with the math since I agree with the definition of a positive and negative slope. However, which pattern is actually "correct" when the description "Upward" and "Downward" diagonal is used and does VFP implement it correctly or does VB?
>
>Anyone have an opinion...
>
>Mike.
>
>>
>>From a math article I was able to find, "the slope computed as m = (y2 - y1) / (x2 - x1)." If you set the left-most part of the line at (0, 0) then a lower left to upper right line has a positive slope due to the fact that both the x and y values are increasing, where an upper right to lower left line has a negative slope (y goes from 0 to -something, while x increases). I'd say that a line with a positive slope goes "upward" and a line with a negative slope goes downward.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform