Handbook
Glossary
update-hit? ( nearest-hit-info hit-info -- nearest-hit-info ? )
Vocabulary
raylib
.
demo
.
mesh-picking
Inputs
nearest-hit-info
an
object
hit-info
an
object
Outputs
nearest-hit-info
an
object
?
an
object
Definition
USING:
accessors
combinators.short-circuit
kernel
math
;
IN:
raylib.demo.mesh-picking
:
update-hit?
( nearest-hit-info hit-info -- nearest-hit-info ? )
2dup
{
[
nip
hit>>
]
[
swap
[
distance>>
]
bi@
<
]
}
2&&
[
nip
t
]
[
drop
f
]
if
;