three dimensional vector cross and dot products