Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.orthonormal_basis

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void orthonormal_basis(float3 normal, out float3 basis1, out float3 basis2);

Parameters

Parameter Description
normal Unit length normal vector.
basis1 Output unit length vector, orthogonal to normal vector.
basis2 Output unit length vector, orthogonal to normal vector and basis1.

Description

Generate an orthonormal basis given a single unit length normal vector.

This implementation is from "Building an Orthonormal Basis, Revisited" https://graphics.pixar.com/library/OrthonormalB/paper.pdf


Declaration

public static void orthonormal_basis(double3 normal, out double3 basis1, out double3 basis2);

Parameters

Parameter Description
normal Unit length normal vector.
basis1 Output unit length vector, orthogonal to normal vector.
basis2 Output unit length vector, orthogonal to normal vector and basis1.

Description

Generate an orthonormal basis given a single unit length normal vector.

This implementation is from "Building an Orthonormal Basis, Revisited" https://graphics.pixar.com/library/OrthonormalB/paper.pdf