starfields – 22blog.com https://22blog.com The past programmed the future, the present makes it so. Fri, 29 Jan 2016 18:21:00 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.1 Programming Starfields – A Puzzle Worth Solving https://22blog.com/programming-starfields-a-puzzle-worth-solving/ https://22blog.com/programming-starfields-a-puzzle-worth-solving/#respond Sat, 12 Dec 2015 22:23:00 +0000 https://22blog.com/?p=10

psRecently, I overheard some programmers talking about creating a simple starfield simulation for a screen saver module. You probably have seen one of these before. The stars begin clustered in the center of the screen and move out toward the edges, producing an effect similar to what you might see while looking out of a spaceship window.

The programmers were talking about the best way to plot the path of the stars, and the general consensus was that it should be done using trigonometry and would require a great deal of floating-point calculation. Each star would occupy a given point and traverse a course which would be defined by triangulation using trigonometric functions.

These programmers knew something about trigonometry and immediately understood

]]>

psRecently, I overheard some programmers talking about creating a simple starfield simulation for a screen saver module. You probably have seen one of these before. The stars begin clustered in the center of the screen and move out toward the edges, producing an effect similar to what you might see while looking out of a spaceship window.

The programmers were talking about the best way to plot the path of the stars, and the general consensus was that it should be done using trigonometry and would require a great deal of floating-point calculation. Each star would occupy a given point and traverse a course which would be defined by triangulation using trigonometric functions.

These programmers knew something about trigonometry and immediately understood

]]>
https://22blog.com/programming-starfields-a-puzzle-worth-solving/feed/ 0