! Copyright (C) 2009, 2011 Joe Groff.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors classes.struct fry generalizations kernel
-locals math math.combinatorics math.functions math.matrices.simd
-math.vectors math.vectors.simd math.quaternions sequences
+USING: accessors classes.struct generalizations kernel
+math math.functions math.matrices.simd math.vectors
+math.vectors.simd math.quaternions sequences
sequences.generalizations sequences.private specialized-arrays
typed ;
FROM: sequences.private => nth-unsafe ;
v fourth m4 n*v v+ ;
TYPED:: v.m4 ( v: float-4 m: matrix4 -- c: float-4 )
- m columns [ v v. ] 4 napply float-4-boa ;
+ m columns [ v vdot ] 4 napply float-4-boa ;
CONSTANT: identity-matrix4
S{ matrix4 f