0.5 1.6 2.7
2 4 7
8.3 9.1 -0.3
6.0 -5.2 -8.9
7.6
where the ray is defined by the its origin <0.5 1.6 2.7> and direction <2 4 7> and the cylinder with hemispherical caps by
points <8.3 9.1 -0.3> and <6.0 -5.2 -8.9> and radius 7.6.
the program should ouput the first intersection point to stdout if there is an intersection and "no intersection" if there is
no intersection between the ray and the primitive.
Submit your code electronically, using one of the following commands:
submit -N a2q3 csc418h intersect.c
submit -N a2q3 csc2504h intersect.c
submit -N a2q5 csc418h robot.cpp ui.cpp
submit -N a2q5 csc2504h robot.cpp ui.cpp