Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


orthonormal_basis

Generate an orthonormal basis given a single unit length normal vector.
Read time 1 minuteLast updated 12 days ago

Definition

orthonormal_basis(float3, float3, float3)

Generate an orthonormal basis given a single unit length normal vector.
public static void orthonormal_basis(float3 normal, out float3 basis1, out float3 basis2)

Parameters

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.

Remarks

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

orthonormal_basis(double3, double3, double3)

Generate an orthonormal basis given a single unit length normal vector.
public static void orthonormal_basis(double3 normal, out double3 basis1, out double3 basis2)

Parameters

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.

Remarks

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