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
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
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
/ 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)
// -
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]
___
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
[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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
23 matches
Mail list logo