Function writeMat4FromLookDirectionRHIntoBuffer
-
writeMat4FromLookDirectionRHIntoBuffer< T extends Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>,>( out: T, forward: Vec3, up: Vec3,): T
Type Parameters
- T extends Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>
Returns T
Write an orientation matrix that maps local -Z to
forwardand local +Y toup. Inputs must be normalized and orthogonal.