MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / createMatrixFromLookAt

Function createMatrixFromLookAt

Source/Falcor/Utils/Math/FalcorMath.h:92–95  ·  view source on GitHub ↗

* Creates a rotation matrix from look-at coordinates. * @param[in] position Object's position. * @param[in] target Object's look-at target. * @param[in] up Object's up vector. * @return 3x3 rotation matrix. */

Source from the content-addressed store, hash-verified

90 * @return 3x3 rotation matrix.
91 */
92inline float3x3 createMatrixFromLookAt(const float3& position, const float3& target, const float3& up)
93{
94 return createMatrixFromBasis(target - position, up);
95}
96
97/**
98 * Projects a 2D coordinate onto a unit sphere

Callers

nothing calls this directly

Calls 1

createMatrixFromBasisFunction · 0.85

Tested by

no test coverage detected