Handbook
Glossary
gml-abs ( registers gml -- registers gml )
Vocabulary
gml
.
coremath
Inputs
registers
an
object
gml
an
object
Outputs
registers
an
object
gml
an
object
Definition
USING:
combinators
gml.runtime
gml.types
kernel
kernel.private
math
math.vectors
;
IN:
gml.coremath
:
gml-abs
( registers gml -- registers gml )
{
gml
}
declare
1 1
[
{
{
[
dup
integer?
]
[
abs
]
}
{
[
dup
float?
]
[
abs
]
}
{
[
dup
vec2d?
]
[
norm
]
}
{
[
dup
vec3d?
]
[
norm
]
}
}
cond
]
gml-primitive
;