[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DRAW & XDRAW... How to use
Jon Bettencourt (jonINTERNETrelayCHAT@napaVALLEYnet.CLARInet) wrote:
: > ROT=r (rotation, 0-255, but it's more or less in radians if I remember right
: Not exactly. In radians, a full 360 degree rotation is 6.283185307. The
: ROT= rotation value for 360 degrees is 64 or any multiple of that. If you
: multiply the radian value by 10, it's close, but multiplying it by 10.5
: will get you closer. In fact, to get the most accurate results when
: converting radians to a ROT= value, multiply it by 10.18591636.
: Multiplying 6.283185307 by 10.18591636 will get you to 64.
: In conclusion, the rotation value is not more or less in radians.
: 1 = 5.625 degrees
: 2 = 11.25 degrees
: 4 = 22.5 degrees
: 8 = 45 degrees or 0.785398163 radians (1 pi over 4)
: 16 = 90 degrees or 1.570796327 radians (1 pi over 2)
: 32 = 180 degrees or 3.141592624 radians (2 pi over 2)
: 48 = 270 degrees or 4.712388980 radians (3 pi over 2)
: 64 = 360 degrees or 6.283185307 radians (4 pi over 2)
: Hence, each unit of ROT= is 5 5/8 degrees, or 0.09817477 radians.
: Don't you just _love_ math??
This is all, of course, true. I would have been more correct to say it is
more or less radians * 10. And it is, more or less...but not exactly.
While we're on the subject, we might as well also mention that only 0, 45,
90, 135, 180, 225, 270, and 315 degree angles are available with SCALE set
to...er...I think it is 4 or smaller. Furthermore, the rotation is from
the point of origin, which may not be exactly what you want.
--Dave Althoff, ][.
--
/^\ _ _ _*** Closed for the season ***
/XXX\ /X\ /X\_ _ /X\__ _ _ _____
/XXXXX\ /XXX\ _/XXXX\_ /X\ /XXXXX\ /X\ /X\ /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX