1. ICONS...(DEAD HORSE I KNOW)
- Posted by David Roach <roachd_76 at YAHOO.COM> Feb 06, 2000
- 388 views
I looked in the archives but couldn't find anything that says how to place an icon in the upper left of a window. Is this possible and if so how? I read somewhere to use this " setIcon( bullet, "SHUTTLE.ico" ) " Will it work? Also could someone look at this and let me know if you se any problems with my coding. It just doesn't seem right to me. How could I make the y axis a different scale than the x axis and still have it come out simy acurate. Thanks in advance. atom t,t2, x, y, maxx, maxy, timeinc,timeinc2, velocity,oldx,oldy oldx=50 oldy=300 timeinc = .0001 timeinc2= .0001 velocity = 100 t2= 0 t = 0 x = 0 y = 0 max_x = 950 max_y = 500 while(x<max_x)and(y<max_y) do x = (velocity * t) + oldx y = (.5 * 32 * t2* t2) + oldy --32f/s vice 9.8 m/s x = floor(x) y = floor(y) setPixel(bullet,x,y,Blue)--plot points t = t + timeinc --increase time t2 = t2 + timeinc2 end while Also does anyone know any round to whole number procedures other than floor? Thanks again. roachd_76
2. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Feb 07, 2000
- 378 views
David Roach wrote: > I looked in the archives but couldn't find > anything that says how to place an icon in > the upper left of a window. setIcon is the function to use. -- David Cuny
3. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by Brian Broker <bkb at CNW.COM> Feb 07, 2000
- 380 views
On Sun, 6 Feb 2000 03:44:20 -0500, David Roach wrote: >t = t + timeinc --increase time >t2 = t2 + timeinc2 You should only need one time variable unless you live in a strange universe where time does not advance at a contant rate... >Also does anyone know any round to whole number procedures other than floor? If you want to round to the nearest integer: function round( atom number ) return floor( number + 0.5 ) end function -- Brian
4. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by Kat <gertie at ZEBRA.NET> Feb 07, 2000
- 387 views
----- Original Message ----- From: Brian Broker <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, February 07, 2000 12:13 PM Subject: Re: ICONS...(DEAD HORSE I KNOW) > On Sun, 6 Feb 2000 03:44:20 -0500, David Roach wrote: > > >t = t + timeinc --increase time > >t2 = t2 + timeinc2 > > You should only need one time variable unless you live in a strange > universe where time does not advance at a contant rate... /me raises a paw..... Remember that experiment in the 70's with two planes that flew around the world in opposite directions, both with sync'd atomic clocks,, and when they landed, both were out of sync with the clock that stayed behind? It has been repeated several times, with the same results. Einstin predicted it would happen,, he also predicted that time vs speed problem tossed about in FTL travel discussions. Kat
5. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by David Roach <roachd_76 at YAHOO.COM> Feb 07, 2000
- 372 views
I have since fixed that. I don't know what I was thinking. Thanks for pointing it out. ----- Original Message ----- From: Brian Broker <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, February 07, 2000 9:13 AM Subject: Re: ICONS...(DEAD HORSE I KNOW) > On Sun, 6 Feb 2000 03:44:20 -0500, David Roach wrote: > > >t = t + timeinc --increase time > >t2 = t2 + timeinc2 > > You should only need one time variable unless you live in a strange > universe where time does not advance at a contant rate... > > >Also does anyone know any round to whole number procedures other than > floor? > > If you want to round to the nearest integer: > > function round( atom number ) > return floor( number + 0.5 ) > end function > > > -- Brian __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
6. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by George Walters <gwalters at SC.RR.COM> Feb 07, 2000
- 391 views
- Last edited Feb 08, 2000
David, I forgot a '2' the height would be H = V * V / 2 * G or plugging in the numbers 15, 625 .. george -----Original Message----- From: David Roach <roachd_76 at YAHOO.COM> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU> Date: Monday, February 07, 2000 8:38 PM Subject: Re: ICONS...(DEAD HORSE I KNOW) >I have since fixed that. I don't know what I was thinking. Thanks for >pointing it out. >----- Original Message ----- >From: Brian Broker <bkb at CNW.COM> >To: <EUPHORIA at LISTSERV.MUOHIO.EDU> >Sent: Monday, February 07, 2000 9:13 AM >Subject: Re: ICONS...(DEAD HORSE I KNOW) > > >> On Sun, 6 Feb 2000 03:44:20 -0500, David Roach wrote: >> >> >t = t + timeinc --increase time >> >t2 = t2 + timeinc2 >> >> You should only need one time variable unless you live in a strange >> universe where time does not advance at a contant rate... >> >> >Also does anyone know any round to whole number procedures other than >> floor? >> >> If you want to round to the nearest integer: >> >> function round( atom number ) >> return floor( number + 0.5 ) >> end function >> >> >> -- Brian > > >__________________________________________________ >Do You Yahoo!? >Talk to your friends online with Yahoo! Messenger. >http://im.yahoo.com
7. Re: ICONS...(DEAD HORSE I KNOW)
- Posted by Daniel Johnson <dpj22 at CAM.AC.UK> Feb 08, 2000
- 386 views
# If you want to round to the nearest integer: # # function round( atom number ) # return floor( number + 0.5 ) # end function Although we all know that float() is horribly slow, in fact slower than sqrt(). In a thread a long time ago this was discussed, and Rob explained that Intel have a round() and sqrt() instruction on the chip but floor() has to be done in software. What I cannot remember ever being told was why, if this is the case, we have floor() and do not have round(). Also why we could not have both, and why floor() cannot be hardcoded to be intel:machine_round(x-.5) [pseudocode] Rob ? -- Daniel Johnson Engineer, smartypants and clown Jesus College, Cambridge all at a very reasonable price dpj22 at cam.ac.uk zeus.jesus.cam.ac.uk/~dpj22 talk dpj22 at jewish.jesus.cam.ac.uk