Handbook
Glossary
reflect ( v n -- v' )
Vocabulary
jamshred
.
oint
Inputs
v
an
object
n
an
object
Outputs
v'
an
object
Definition
USING:
math
math.vectors
;
IN:
jamshred.oint
::
reflect
( v n -- v' )
v v n
vdot
n n
vdot
/
2
*
n
n*v
v-
;