Cross

Keywords: Crossproduct

Crossproduct is a common mathematical operation that takes two vectors and returns one that's orthogonal to both of them.

A common trick to find a vector (tangent) that follows a surface is to "double cross" the normal. So first you cross the Normal with an arbitrary up vector. Then you cross the resulting vector with the Normal again.