Handbook
Glossary
gml-scalar-op ( a b scalar-quot mixed-quot vector-quot -- c )
Vocabulary
gml
.
coremath
Inputs
a
an
object
b
an
object
scalar-quot
an
object
mixed-quot
an
object
vector-quot
an
object
Outputs
c
an
object
Definition
USING:
combinators
gml.types
kernel
math
;
IN:
gml.coremath
:
gml-scalar-op
( a b scalar-quot mixed-quot vector-quot -- c )
{
{
[
reach
float?
]
[
2drop
call
]
}
{
[
reach
integer?
]
[
2drop
call
]
}
{
[
reach
vec2d?
]
[
drop
nip
[
scalar>vec2d
]
2dip
call
]
}
{
[
reach
vec3d?
]
[
drop
nip
[
scalar>vec3d
]
2dip
call
]
}
}
cond
;
inline