[PD-dev] Circular Line object?
marius.schebella at chello.at
Sat Jan 25 10:43:34 CET 2003
every destination angle is also (angle - 360), then you just compare the
absolute values, if it is shorter to go from 10 to 270 (which is 260
degrees) or 10 to -90 (which is -100).
useful objects might be "abs", "mod", <, >, <=... and maybe you will also
need "moses" or min/max for handling the line object..
----- Original Message -----
From: <bbogart at ryerson.ca>
To: <pd-dev at iem.kug.ac.at>
Sent: Saturday, January 25, 2003 3:27 AM
Subject: [PD-dev] Circular Line object?
> Hello all,
> I'm working with a lot of angles in my current project (0-360degrees where
0 is the same point as 360)
> I want to tween between one angle and another. If my initial angle is 10
degrees, my desination angle is 270 degress. I want an object which will
take the shortest route around the circle to tween to the desination angle.
If I use "line" I have my angle go from 0-90-180-270 Clock wise when I want
it to go 10-0-270 Counter clockwise. The line object does work, but only
when the angles differ by less than 180 degrees. So the question is how do I
make a patch which tweens the angle by the shortnest distance?
> Any help would would be appreciated.
> In case your hoping I'm not talking about a rotating object so I can't
just use a negative rotation angle.
> PD-dev mailing list
> PD-dev at iem.kug.ac.at
More information about the Pd-dev