scottobear: (Default)
[personal profile] scottobear
Working on some code, and tripped over this -

onMouseWheel Event Yay!

Sure, it's probably not a standard, but boy, is this cool. IE6 has an event handler for the scroll wheel. Finally we can make interfaces where a layer scrolls with the wheel!

http://www.alistapart.com/stories/candy/

game design in flash 5. maybe I'll goof with this over the weekend? Why does Flash use radians instead of degrees for trig functions? Anyone? You can convert, but why?

ok, enough dork stuff. time to order supper. I'm getting Japanese!

Date: 2001-05-26 06:11 pm (UTC)
From: [identity profile] missv.livejournal.com
Erm, 'cos radians are way cooler? Seriously though, its been my experience that most higher math applications use radians. Degrees are for {ahem} the unwashed masses who only got as far as high school geometry....

Re:

Date: 2001-05-26 06:26 pm (UTC)
From: [identity profile] scottobear.livejournal.com
Why I aughta...

*grins*

I'm used to programming stuff that has all the stuff built in, deg/rad or whatever.. :) I'm just spoiled by the new fangled programming stuff, I suppose. :)


WARNING: Math Lesson Ahead

Date: 2001-05-26 07:23 pm (UTC)
From: [identity profile] egofood.livejournal.com
Degrees are a fraction. 90 degrees is 90/360 of a circumference. Radians on the other hand are actual units of length. There are 2 pi radians going around a circle. 2 pi times the radius is also the length of that circumference. So when you do the math, the radian angle is already the length of the arc bisected by the angle you just have to scale for the radius. And trig functions, when you get right down to their dirty definitions are just measurements of arc lengths or ratios of measurements of arc lengths.

Computers don't think the same way we do. We just make them look that way so we can think they think the way we do. Now you know why programmers are insane. :D (Why yes, my degree IS in computer science. How did you know!)

Re: WARNING: Math Lesson Ahead

Date: 2001-05-26 07:25 pm (UTC)
From: [identity profile] scottobear.livejournal.com
My Degree is in computer Science, too! (My reality was slightly warped by a minor in english lit, though. )

Thanks for the explanation, though! clear, and to the point.

Profile

scottobear: (Default)
scott von berg

April 2017

S M T W T F S
       1
2 345678
9 10 11 12 13 14 15
16 1718 19 20 21 22
23 2425 26 2728 29
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 4th, 2026 04:57 pm
Powered by Dreamwidth Studios