From 9785c91aeba5c03fe27d9cb78ba41af08201bc5c Mon Sep 17 00:00:00 2001 From: KonH Date: Sat, 17 Aug 2019 09:15:57 +0700 Subject: [PATCH] fix typo in make_look_... function names --- headers/enduro2d/math/mat4.hpp | 8 ++++---- samples/sources/sample_01/sample_01.cpp | 2 +- samples/sources/sample_02/sample_02.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/enduro2d/math/mat4.hpp b/headers/enduro2d/math/mat4.hpp index f26b5094..bf120285 100644 --- a/headers/enduro2d/math/mat4.hpp +++ b/headers/enduro2d/math/mat4.hpp @@ -512,12 +512,12 @@ namespace e2d::math } // - // make_loot_at_lh_matrix4 + // make_look_at_lh_matrix4 // template < typename T > std::enable_if_t, mat4> - make_loot_at_lh_matrix4(const vec3& eye, const vec3& at, const vec3& up) noexcept { + make_look_at_lh_matrix4(const vec3& eye, const vec3& at, const vec3& up) noexcept { const vec3 az = normalized(at - eye); const vec3 ax = normalized(math::cross(up, az)); const vec3 ay = math::cross(az, ax); @@ -532,12 +532,12 @@ namespace e2d::math } // - // make_loot_at_rh_matrix4 + // make_look_at_rh_matrix4 // template < typename T > std::enable_if_t, mat4> - make_loot_at_rh_matrix4(const vec3& eye, const vec3& at, const vec3& up) noexcept { + make_look_at_rh_matrix4(const vec3& eye, const vec3& at, const vec3& up) noexcept { const vec3 az = normalized(eye - at); const vec3 ax = normalized(math::cross(up, az)); const vec3 ay = math::cross(az, ax); diff --git a/samples/sources/sample_01/sample_01.cpp b/samples/sources/sample_01/sample_01.cpp index fd477224..af3eb4d1 100644 --- a/samples/sources/sample_01/sample_01.cpp +++ b/samples/sources/sample_01/sample_01.cpp @@ -244,7 +244,7 @@ namespace math::make_rotation_matrix4(make_rad(the().time()), 0.f, 1.f, 0.f) * math::make_rotation_matrix4(make_rad(the().time()), 0.f, 0.f, 1.f) * math::make_translation_matrix4(0.f, 0.f, 0.f) * - math::make_loot_at_lh_matrix4({0.f, 0.f, -3.f}, v3f::zero(), v3f::unit_y()) * + math::make_look_at_lh_matrix4({0.f, 0.f, -3.f}, v3f::zero(), v3f::unit_y()) * projection; material_.properties() diff --git a/samples/sources/sample_02/sample_02.cpp b/samples/sources/sample_02/sample_02.cpp index 0d9f11cc..8eb82917 100644 --- a/samples/sources/sample_02/sample_02.cpp +++ b/samples/sources/sample_02/sample_02.cpp @@ -214,7 +214,7 @@ namespace math::make_rotation_matrix4(make_rad(the().time()), 0.f, 1.f, 0.f) * math::make_rotation_matrix4(make_rad(the().time()), 0.f, 0.f, 1.f) * math::make_translation_matrix4(0.f, 0.f, 0.f) * - math::make_loot_at_lh_matrix4({0.f, 0.f, -2.f}, v3f::zero(), v3f::unit_y()) * + math::make_look_at_lh_matrix4({0.f, 0.f, -2.f}, v3f::zero(), v3f::unit_y()) * projection; material_.properties()