principles and applications of ray casting duplicate 7024378