Function CommandBuilder.OrthonormalBasis
OrthonormalBasis
(float3 normal, out float3 basis1, out float3 basis2)
Constructs an orthonormal basis from a single normal vector.
Public
Static
void OrthonormalBasis (
float3 | normal | |
out float3 | basis1 | |
out float3 | basis2 |
Constructs an orthonormal basis from a single normal vector.
This is similar to math.orthonormal_basis, but it tries harder to be continuous in its input. In contrast, math.orthonormal_basis has a tendency to jump around even with small changes to the normal.
It's not as fast as math.orthonormal_basis, though.