Efficient Construction of Perpendicular Vectors Without Branching
This paper presents a novel formula for computing an arbitrary vector perpendicular to a given 3D vector. The formula, as well as the provided C language implementation, are unusual in that they require no conditional branching. The formula involves little arithmetic and is amenable to hardware implementation.
Stark, Michael M.. (2009). "Efficient Construction of Perpendicular Vectors Without Branching". Journal of Graphics, GPU, and Game Tools, 14(1), 55-62.