Handbook
Glossary
sphere-d ( sphere b v -- d )
Vocabulary
benchmark
.
raytracer
Inputs
sphere
an
object
b
an
object
v
an
object
Outputs
d
an
object
Definition
USING:
accessors
kernel
math
math.vectors
;
IN:
benchmark.raytracer
:
sphere-d
( sphere b v -- d )
[
radius>>
sq
]
[
sq
]
[
norm-sq
]
tri*
-
+
;
inline