Rats! The code I posted was mangled by the mailer. This time I'll leave out the comments. ------------------------------------------------------------------ qRot=: dyad define 'u w'=. y u=. u*sin-:w t=. +: u cross x x+ (t*cos-:w)+ u cross t )

L=: +/"1 &. (*:"_) norm=: ] % L cross=: (([: 1&|."1 [)* [: 2&|."1 ])- (([: 1&|."1 [)* [: 2&|."1 ])~
-------------------------------------------------------------------
                               Patrick

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to