Handbook
Glossary
sphere
Vocabulary
gpu
.
demos
.
raytrace
Definition
USING:
arrays
math
;
IN:
gpu.demos.raytrace
TUPLE:
sphere
{
axis
array
initial:
{
}
}
{
home
array
initial:
{
}
}
{
dtheta
float
initial:
0.0
}
{
radius
float
initial:
0.0
}
{
color
array
initial:
{
}
}
{
theta
float
initial:
0.0
}
;
Methods
USING:
accessors
audio.engine
gpu.demos.raytrace
math
math.libm
;
M:
sphere
audio-distance
radius>>
fsqrt
2.0
*
;
inline
USING:
audio.engine
gpu.demos.raytrace
;
M:
sphere
audio-position
sphere-center
;
inline