Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating Curvature with an Array
Message
From
23/04/2008 11:07:32
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
22/04/2008 17:08:38
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01311849
Message ID:
01312625
Views:
19
>>There must be a way to calculate that using another value, like 100 for a circle (or >ellipse) and 0 for a square (or rectangle) and create the array used to create the >shape.
>
>
>you can create as many (x,y) points on the graph as you like.
>
>suppose you have a circle of radius r
>given the x coordinate you can calculate the y coordinate in this way
>
>y = (r^2 - x^2)^(1/2)
>
>crank as many points as necessary.
>
>this is just a rearrangement of ( x^2 + y^2 = r^2 ) the pythagorean theorem.
>
>have fun!
>Dave.

And I thought I would never need math... Doh! <g>
Previous
Reply
Map
View

Click here to load this message in the networking platform