A Python implementation of Ray Tracer Challenge book. This mostly follows the book although there are some slight deviations:
- There is an error in one test case where the
inverse
of a rotation is used rather than thetranspose
(cite page) - I made the ray-casting function,
position(origin, direction)
a method of theRay
class so it is called asray.position(t)
rather thanposition(ray, t)
.