MathUtilEx.

Orthonormalize(Vector3, Vector3) Method

Summary

Orthonormalizes 2 vectors.
Namespace
StrideToolkit.Mathematics
Containing Type
MathUtilEx

Syntax

public static void Orthonormalize(ref Vector3 normal, ref Vector3 tangent)

Remarks

Makes vectors normalized and orthogonal to each other. Normalizes normal. Normalizes tangent and makes sure it is orthogonal to normal.

Parameters

Name Type Description
normal Vector3 The normal vector.
tangent Vector3 The tangent vector.

Return Value

Type Description
void