Math wizardry
Alex Tweedly
alex at tweedly.net
Sat Oct 15 18:25:44 EDT 2005
Roger.E.Eller at sealedair.com wrote:
>
>Hello Jim(s),
>
>I was trying to use this function with a real-world problem and it isn't
>giving me the result (an angle between 1 and 360) that I expected. I have
>an image object (a scan of some text). The image wasn't scanned straight,
>so I thought I would draw a grc line in parallel with the text in the
>scan. I am trying to use the functions above to determine the angle of the
>grc line object so that I can rotate the image to make it straight. The
>function always returns a number that is less than 3. Can someone explain
>why this is or offer another way to determine the angle of a line? Math is
>NOT my strength.
>
>
>
There are two "scales" used to measure angle
- degrees (from 0 to 360 for the complete circle)
- radians (from 0 to pi for the complete circle)
So simply multiply your result by (360 / pi)
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005
More information about the use-livecode
mailing list