Math |
public static void Orthonormalize( Vector3[] destination, params Vector3[] source )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when source or destination is null. |
ArgumentOutOfRangeException | Thrown when destination is shorter in length than source. |
Orthonormalization is the process of making all vectors orthogonal to each other and making all vectors of unit length. This means that any given vector will be orthogonal to any other given vector in the list.
Because this method uses the modified Gram-Schmidt process, the resulting vectors tend to be numerically unstable. The numeric stability decreases according to the vectors position in the list so that the first vector is the most stable and the last vector is the least stable.