MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / cross

Function cross

webgl/js/three.min.js:22934–22938  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

22932 // Adapted from http://www.paulbrunt.co.uk/lab/heightnormal/
22933
22934 var cross = function ( a, b ) {
22935
22936 return [ a[ 1 ] * b[ 2 ] - a[ 2 ] * b[ 1 ], a[ 2 ] * b[ 0 ] - a[ 0 ] * b[ 2 ], a[ 0 ] * b[ 1 ] - a[ 1 ] * b[ 0 ] ];
22937
22938 }
22939
22940 var subtract = function ( a, b ) {
22941

Callers 1

three.min.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected