tripleProduct = function( vec1, vec2, vec3 ) {
            return vectorDotProd( vectorCrossProd( vec1, vec2 ), vec3 );
        }
Scalar triple product of three vectors.

It can be used to determine the handness of vectors.

https://en.wikipedia.org/wiki/Triple_product#Scalar_triple_product