Re: Math wizardry - revisited and corrected.

2005-10-17 Thread Jim Hurley
Message: 6 Date: Sun, 16 Oct 2005 23:09:18 -0400 From: [EMAIL PROTECTED] Subject: Re: Math wizardry - revisited and corrected. To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii So multiply by (180 / pi) Alex

Re: Math wizardry

2005-10-16 Thread Roger . E . Eller
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

Re: Math wizardry

2005-10-16 Thread Roger . E . Eller
For anyone interested, the modifications I made to Jim's original function will now return a negative or positive angle that can be used to set the angle property of an image object. This is great for rotating an image by simply drawing a line object at the angle you desire. function

Math wizardry - revisited and corrected.

2005-10-16 Thread Alex Tweedly
/ 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) // -

Re: Math wizardry - revisited and corrected.

2005-10-16 Thread Roger . E . Eller
So multiply by (180 / pi) Alex, I was able to get the function to work with your earlier suggestion multiply by (360/ pi), but using 180 makes it whack out (that's a technical term) no matter what I try. ;-) Roger Eller [EMAIL PROTECTED] ___

Re: Math wizardry

2005-10-15 Thread Roger . E . Eller
On Tue, 29 Mar 2005 05:13:44 -0800, Jim Hurley wrote to Jim MaConnell: Jim, Perhaps even easier would be to define a function which determines the *geometrical* angle associated with a line in Run Rev. Any geometrical line rotated 180 degrees is the same geometrical line. Therefore the

Re: Math wizardry

2005-10-15 Thread Alex Tweedly
[EMAIL PROTECTED] 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

Re: Math wizardry

2005-03-29 Thread Jim Hurley
Message: 15 Date: Mon, 28 Mar 2005 11:02:18 -0800 From: Jim MacConnell [EMAIL PROTECTED] Subject: Re: Math wizardry To: RevList use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII Richard, All of these give different values

Re: Math wizardry

2005-03-29 Thread Jim MacConnell
All of these give different values for the resulting angles, depending on the direction from which the lines are drawn. How do I consistently determine the angle between the two lines? I think you may want to take a different approach. Since the user is drawing the lines, it sounds like

Re: Math wizardry

2005-03-29 Thread Jim Hurley
Message: 17 Date: Tue, 29 Mar 2005 07:35:46 -0800 From: Jim MacConnell [EMAIL PROTECTED] Subject: Re: Math wizardry To: RevList use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII (snip) Perhaps even easier would be to define a function

Re: Math wizardry

2005-03-28 Thread Richard Miller
the two lines? Thanks. Richard Miller Imprinter Technologies On Mar 2, 2005, at 12:25 PM, Jim Hurley wrote: Message: 1 Date: Wed, 2 Mar 2005 10:41:27 -0500 From: Richard Miller [EMAIL PROTECTED] Subject: Math wizardry To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED

Re: Math wizardry

2005-03-28 Thread Jim Hurley
Message: 11 Date: Mon, 28 Mar 2005 10:59:45 -0500 From: Richard Miller [EMAIL PROTECTED] Subject: Re: Math wizardry To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed Thanks to help from Jim Hurley, I

Re: Math wizardry

2005-03-28 Thread Jim Hurley
Richard, I should have said that the funciton theLineAngle below assumes you define the line *either* by the two end points p1, and p2 Or by the line as defined in Run Rev, that is the points of grc myLine. The points consists of the point p1 followed by a return character and then point p2.

Re: Math wizardry

2005-03-28 Thread Jim MacConnell
Richard, All of these give different values for the resulting angles, depending on the direction from which the lines are drawn. How do I consistently determine the angle between the two lines? I think you may want to take a different approach. Since the user is drawing the lines, it sounds like

Re: Math wizardry

2005-03-28 Thread Richard Miller
Well James.. I think that does it! Very much appreciated. Richard On Mar 28, 2005, at 2:02 PM, Jim MacConnell wrote: Richard, All of these give different values for the resulting angles, depending on the direction from which the lines are drawn. How do I consistently determine the angle between

Re: Math wizardry

2005-03-05 Thread Jim Hurley
Message: 7 Date: Fri, 4 Mar 2005 16:45:58 -0500 From: James Steiner [EMAIL PROTECTED] Subject: Re: Math wizardry To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII To find out whether the intersection point lies

Re: Math wizardry

2005-03-04 Thread James Steiner
To find out whether the intersection point lies between the end points of each line you will need to test whether the distance between the intersection point and ALL the end points is less than the length of each line respectively. (I can't imagine that sentence is clear.) That's not

Re: Math wizardry

2005-03-04 Thread James Steiner
P.S. A my personal guide to all things math-related I use eric weinstein's MathWorld: http://mathworld.wolfram.com/ See also, world of science, world of physics, etc. On Wed, 2 Mar 2005 10:41:27 -0500, Richard Miller [EMAIL PROTECTED] wrote: I've got two line graphics drawn on the screen. I

RE: Math wizardry

2005-03-04 Thread MisterX
Steiner Sent: Friday, March 04, 2005 22:49 To: How to use Revolution Subject: Re: Math wizardry P.S. A my personal guide to all things math-related I use eric weinstein's MathWorld: http://mathworld.wolfram.com/ See also, world of science, world of physics, etc. On Wed, 2 Mar 2005 10

Math wizardry

2005-03-02 Thread Richard Miller
I've got two line graphics drawn on the screen. I need to find out if they intersect and, if so, what the angle is that is formed by their intersection. Any simple way to do this? Thanks. Richard Miller Imprinter Technologies ___ use-revolution

Re: Math wizardry

2005-03-02 Thread Jim Hurley
Message: 1 Date: Wed, 2 Mar 2005 10:41:27 -0500 From: Richard Miller [EMAIL PROTECTED] Subject: Math wizardry To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed I've got two line graphics drawn

Re: Math wizardry

2005-03-02 Thread Richard K. Herz
Richard Miller asked: I've got two line graphics drawn on the screen. I need to find out if they intersect and, if so, what the angle is that is formed by their intersection. Any simple way to do this? See, e.g., http://www.ugrad.math.ubc.ca/coursedoc/math100/notes/zoo/eqline.html for each line

Re: Math wizardry

2005-03-02 Thread Richard Miller
Thanks Richard and Jim for the math. I suspect I'll have questions for one or both of you shortly. Richard Miller On Mar 2, 2005, at 12:51 PM, Richard K. Herz wrote: Richard Miller asked: I've got two line graphics drawn on the screen. I need to find out if they intersect and, if so, what the