--- from: http://rosettacode.org/wiki/Ray-casting_algorithm note: Classic CS problems and programs