For the purpose of my school, I am learning how to do a raycast in C.
Based on this tutorial I found http://permadi.com/1996/05/ray-casting-tutorial-7/, the author explains his method to find deltaX and deltaY to check whenever there is a wall at a position based on deltaX or deltaY.
However he's getting deltaX and deltaY via the tangent of an angle a, and it wont work with 0, pi/2, pi and 3pi/2.
How can it work with such solution ? Am I missing something ?