An example of raycasting with java, this method was used in games such as Wolfenstein 3D and early versions of Quake.