source>sequence ( source-tag up-axis scale -- sequence )


Vocabulary
game.models.collada.private

Inputs
source-taga tag
up-axisa rh-up
scalea number


Outputs
sequencea 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


: 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 ;