要了解外積運算,可以參考維基百科。關於外積結果長度為零最好的解法是 Tomas Möller 與 John F. Hughes 的 “Efficiently Building a Matrix to Rotate One Vector to Another”.