11,706,979 members (53,683 online)

# Algorithms

 Re: Factorials cp987624-Jun-08 20:09 cp9876 24-Jun-08 20:09
 Re: Factorials Luc Pattyn24-Jun-08 23:53 Luc Pattyn 24-Jun-08 23:53
 Re: Factorials cp987625-Jun-08 2:27 cp9876 25-Jun-08 2:27
 Re: Factorials Luc Pattyn25-Jun-08 2:34 Luc Pattyn 25-Jun-08 2:34
 Re: Factorials cp987625-Jun-08 2:40 cp9876 25-Jun-08 2:40
 Re: Factorials tim_one14-Jul-08 8:37 tim_one 14-Jul-08 8:37
 Re: Factorials Arash Partow25-Jun-08 2:14 Arash Partow 25-Jun-08 2:14
 Re: Factorials Ian Uy25-Jun-08 6:26 Ian Uy 25-Jun-08 6:26
 How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 8:35 Edmundisme 18-Jun-08 8:35
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 11:38 73Zeppelin 18-Jun-08 11:38
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:44 Matthew Butler 18-Jun-08 11:44
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 22:00 73Zeppelin 18-Jun-08 22:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:00 Edmundisme 18-Jun-08 12:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:41 Matthew Butler 18-Jun-08 11:41
 Just use basic geometry/maths... nextXpos = lastXpos + speed * sin(angle); nextYpos = lastYpos - speed * cos(angle); [angle is measured from the vertical, clockwise] The only things you need to remember are: > Math.Sin and Math.Cos take the angle argument in radians not degrees. > Sin and Cos return double precision numbers: which may round to 0 or 1 if you are using integer positions and therefore the tank will not move as you want. Hope this helps. Matthew Butler
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:01 Edmundisme 18-Jun-08 12:01
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... CPallini18-Jun-08 21:19 CPallini 18-Jun-08 21:19
 Polyline offset algorithm beko16-Jun-08 21:59 beko 16-Jun-08 21:59
 Re: Polyline offset algorithm Alan Balkany17-Jun-08 4:07 Alan Balkany 17-Jun-08 4:07
 Re: Polyline offset algorithm beko17-Jun-08 4:43 beko 17-Jun-08 4:43
 Re: Polyline offset algorithm CPallini17-Jun-08 7:03 CPallini 17-Jun-08 7:03
 Re: Polyline offset algorithm beko17-Jun-08 8:26 beko 17-Jun-08 8:26
 Re: Polyline offset algorithm cp987617-Jun-08 12:10 cp9876 17-Jun-08 12:10
 Re: Polyline offset algorithm Arash Partow18-Jun-08 1:22 Arash Partow 18-Jun-08 1:22
 Re: Polyline offset algorithm beko18-Jun-08 19:55 beko 18-Jun-08 19:55
 What's the period of (cos ax)(sin bx)? sherifffruitfly14-Jun-08 10:00 sherifffruitfly 14-Jun-08 10:00
 Re: What's the period of (cos ax)(sin bx)? cp987614-Jun-08 19:03 cp9876 14-Jun-08 19:03
 Re: What's the period of (cos ax)(sin bx)? MarkBrock15-Jun-08 2:00 MarkBrock 15-Jun-08 2:00
 Re: What's the period of (cos ax)(sin bx)? CPallini15-Jun-08 22:02 CPallini 15-Jun-08 22:02
 Quaternion to Euler ``` Xmen ``` 11-Jun-08 3:08 ``` Xmen ``` 11-Jun-08 3:08
 Re: Quaternion to Euler cmk11-Jun-08 11:27 cmk 11-Jun-08 11:27
 Re: Quaternion to Euler ``` Xmen ``` 11-Jun-08 12:48 ``` Xmen ``` 11-Jun-08 12:48
 Re: Quaternion to Euler Mark Churchill12-Jun-08 18:38 Mark Churchill 12-Jun-08 18:38
 Graphical Object drawing algorithms Monty29-Jun-08 2:59 Monty2 9-Jun-08 2:59
 Re: Graphical Object drawing algorithms 73Zeppelin9-Jun-08 3:11 73Zeppelin 9-Jun-08 3:11
 Re: Graphical Object drawing algorithms Monty29-Jun-08 3:24 Monty2 9-Jun-08 3:24
 Re: Graphical Object drawing algorithms 73Zeppelin9-Jun-08 3:37 73Zeppelin 9-Jun-08 3:37
 Re: Graphical Object drawing algorithms Tim Craig9-Jun-08 17:37 Tim Craig 9-Jun-08 17:37
 Re: Graphical Object drawing algorithms Monty29-Jun-08 21:02 Monty2 9-Jun-08 21:02
 Re: Graphical Object drawing algorithms Tim Craig9-Jun-08 21:15 Tim Craig 9-Jun-08 21:15
 Re: Graphical Object drawing algorithms Monty29-Jun-08 22:17 Monty2 9-Jun-08 22:17
 What's the most popular algorithm for video compression in industry? followait7-Jun-08 16:55 followait 7-Jun-08 16:55
 Re: What's the most popular algorithm for video compression in industry? 73Zeppelin8-Jun-08 8:47 73Zeppelin 8-Jun-08 8:47
 Re: What's the most popular algorithm for video compression in industry? Tolga Birdal25-Oct-08 7:06 Tolga Birdal 25-Oct-08 7:06
 Best Fit Algo. deezZ6-Jun-08 19:06 deezZ 6-Jun-08 19:06
 Re: Best Fit Algo. 73Zeppelin8-Jun-08 8:42 73Zeppelin 8-Jun-08 8:42
 Re: Best Fit Algo. cp98768-Jun-08 11:45 cp9876 8-Jun-08 11:45
 Re: Best Fit Algo. Mark Churchill9-Jun-08 18:44 Mark Churchill 9-Jun-08 18:44
 Re: Best Fit Algo. Tadeusz Westawic12-Jun-08 18:41 Tadeusz Westawic 12-Jun-08 18:41
 Collision Detection Ali Nasri Nazif6-Jun-08 5:36 Ali Nasri Nazif 6-Jun-08 5:36
 Re: Collision Detection [modified] 73Zeppelin6-Jun-08 6:47 73Zeppelin 6-Jun-08 6:47
 Last Visit: 31-Dec-99 18:00     Last Update: 30-Aug-15 12:38 Refresh « Prev1...70717273747576777879 Next »

General    News    Suggestion    Question    Bug    Answer    Joke    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 25 Aug 2015