Fixes to engine. Elaborating test. Changed light to be a sphere.
[tuple-trace.git] / ray.lisp
blob679f14d6c878c683b9b1adfdb5ddaa3fb324c26a
2 (in-package :tuple-trace)
4 (defclass ray ()
5 ((origin :initform (new-vertex3d) :accessor origin-of)
6 (direction :initform (new-vector3d) :accessor direction-of)))
9 ;; (defmethod ray-point ((ray ray) distance)
10 ;; (make-vertex3d
11 ;; (vertex3d-distance (vertex3d (origin-of ray)) (vertex3d (distance-of ray)))))