Handbook
Glossary
ray-grid ( point ss-grid -- ray-grid )
Vocabulary
benchmark
.
raytracer
Inputs
point
an
object
ss-grid
an
object
Outputs
ray-grid
an
object
Definition
USING:
kernel
math.vectors
sequences
specialized-arrays.instances.alien.c-types.double
;
IN:
benchmark.raytracer
:
ray-grid
( point ss-grid -- ray-grid )
[
[
v+
normalize
double-array{
0.0 0.0 -4.0
}
swap
<ray>
]
with
map
]
with
map
;