benchmark.raytracer vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
group sphereobjs
hit tuplenormal lambda
ray tupleorig dir
sphere tuplecenter radius


Generic words
WordStack effect
intersect-scene( hit ray scene -- hit )


Ordinary words
WordStack effect
-+( x y -- x-y x+y )
<group>( objs bound -- group )
<hit>( normal lambda -- hit )
<ray>( orig dir -- ray )
<sphere>( center radius -- sphere )
cast-ray( ray scene -- g )
create( level c r -- scene )
create-bound( c r -- sphere )
create-center( c r d -- c2 )
create-group( level c r -- scene )
create-offsets( quot -- )
create-step( level c r d -- scene )
delta( -- n )
if-ray-sphere( hit ray sphere quot -- hit )
initial-hit( -- value )
initial-intersect( ray scene -- hit )
levels( -- value )
light( -- value )
make-group( bound quot -- )
oversampling( -- value )
pgm-header( w h -- )
pgm-pixel( n -- )
pixel-grid( -- grid )
ray-g( hit -- g )
ray-grid( point ss-grid -- ray-grid )
ray-o( ray hit -- o )
ray-pixel( scene point -- n )
ray-sphere( sphere ray -- t )
ray-trace( scene -- pixels )
raytracer-benchmark( -- )
run-raytracer( -- string )
size( -- value )
sphere-b( v ray -- b )
sphere-b&v( sphere ray -- b v )
sphere-d( sphere b v -- d )
sphere-n( ray sphere l -- n )
sphere-t( b d -- t )
sphere-v( sphere ray -- v )
sray-intersect( ray scene hit -- ray )
ss-grid( -- ss-grid )
ss-point( dx dy -- point )


Class predicate words
WordStack effect
group?( object -- ? )
hit?( object -- ? )
ray?( object -- ? )
sphere?( object -- ? )


Files


Metadata files