* 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. */
| 90 | * @return 3x3 rotation matrix. |
| 91 | */ |
| 92 | inline 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 |
nothing calls this directly
no test coverage detected