(Flash) Cross Product - Math and (Quasi) physics in AS3

| No Comments | No TrackBacks

Cross product of two 3D vectors returns another vecter that is perpendicular to both the original vecters.

In this example vector A and B are indicated by blue line and green line, respectively, and their product is shown with red line.

Cross Product

A × B = [(a2 * b3 - a3 * b2) (a3 * b1 - a1 * b3) (a1 * b2 - a2 * b1)]
  • for any two vectors A = [a1 a2 a3] and B = [b1 b2 b3].

sample movie and scripts

No TrackBacks

TrackBack URL: http://www.kynd.info/cp-bin/mt/mt-tb.cgi/56

Leave a comment