How to project vector on the screen

Hey!
It would be helpful if you included some examples of inputs, expected values and the “strange” values you’re getting.