Handbook
Glossary
source>sequence ( source-tag up-axis scale -- sequence )
Vocabulary
game
.
models
.
collada
.
private
Inputs
source-tag
a
tag
up-axis
a
rh-up
scale
a
number
Outputs
sequence
a
sequence
Word description
Convert the
float_array
in a
source tag
to a sequence of number sequences according to the element stride. The values are scaled according to
scale
and swizzled from
up-axis
so that the Y coordinate points up.
Definition
USING:
grouping
kernel
math
math.parser
sequences
;
IN:
game.models.collada.private
:
source>sequence
( source-tag up-axis scale -- sequence )
rot
[
"float_array"
x/
xt
string>numbers
[
*
]
with
map
]
[
nip
"technique_common"
x/
"accessor"
x/
"stride"
x@
string>number
]
2bi
group
[
tuck
length
2
>
[
>y-up-axis!
]
[
drop
]
if
]
with
map
;