diff --git a/README.md b/README.md index da2884e..7a15b6d 100644 --- a/README.md +++ b/README.md @@ -1730,17 +1730,17 @@ template < typename T > inline vec unit4_y; template < typename T > inline vec unit4_z; template < typename T > inline vec unit4_w; -template < typename T > inline mat zero2x2; -template < typename T > inline mat zero3x3; -template < typename T > inline mat zero4x4; +template < typename T > inline mat mzero2; +template < typename T > inline mat mzero3; +template < typename T > inline mat mzero4; -template < typename T > inline mat unit2x2; -template < typename T > inline mat unit3x3; -template < typename T > inline mat unit4x4; +template < typename T > inline mat munit2; +template < typename T > inline mat munit3; +template < typename T > inline mat munit4; -template < typename T > inline mat identity2x2; -template < typename T > inline mat identity3x3; -template < typename T > inline mat identity4x4; +template < typename T > inline mat midentity2; +template < typename T > inline mat midentity3; +template < typename T > inline mat midentity4; template < typename T > inline qua qzero; template < typename T > inline qua qidentity; diff --git a/headers/vmath.hpp/vmath_ext.hpp b/headers/vmath.hpp/vmath_ext.hpp index 0e66998..a777fa6 100644 --- a/headers/vmath.hpp/vmath_ext.hpp +++ b/headers/vmath.hpp/vmath_ext.hpp @@ -39,17 +39,17 @@ namespace vmath_hpp template < typename T > inline constexpr vec unit4_z{T{0}, T{0}, T{1}, T{0}}; template < typename T > inline constexpr vec unit4_w{T{0}, T{0}, T{0}, T{1}}; - template < typename T > inline constexpr mat zero2x2{zero_init}; - template < typename T > inline constexpr mat zero3x3{zero_init}; - template < typename T > inline constexpr mat zero4x4{zero_init}; + template < typename T > inline constexpr mat mzero2{zero_init}; + template < typename T > inline constexpr mat mzero3{zero_init}; + template < typename T > inline constexpr mat mzero4{zero_init}; - template < typename T > inline constexpr mat unit2x2{unit_init}; - template < typename T > inline constexpr mat unit3x3{unit_init}; - template < typename T > inline constexpr mat unit4x4{unit_init}; + template < typename T > inline constexpr mat munit2{unit_init}; + template < typename T > inline constexpr mat munit3{unit_init}; + template < typename T > inline constexpr mat munit4{unit_init}; - template < typename T > inline constexpr mat identity2x2{identity_init}; - template < typename T > inline constexpr mat identity3x3{identity_init}; - template < typename T > inline constexpr mat identity4x4{identity_init}; + template < typename T > inline constexpr mat midentity2{identity_init}; + template < typename T > inline constexpr mat midentity3{identity_init}; + template < typename T > inline constexpr mat midentity4{identity_init}; template < typename T > inline constexpr qua qzero{zero_init}; template < typename T > inline constexpr qua qidentity{identity_init}; diff --git a/untests/vmath_ext_tests.cpp b/untests/vmath_ext_tests.cpp index 16b326c..a2ac75d 100644 --- a/untests/vmath_ext_tests.cpp +++ b/untests/vmath_ext_tests.cpp @@ -41,17 +41,17 @@ TEST_CASE("vmath/ext/units") { STATIC_CHECK(unit4_z == ivec4(0,0,1,0)); STATIC_CHECK(unit4_w == ivec4(0,0,0,1)); - STATIC_CHECK(zero2x2 == imat2(0,0,0,0)); - STATIC_CHECK(zero3x3 == imat3(0,0,0,0,0,0,0,0,0)); - STATIC_CHECK(zero4x4 == imat4(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)); + STATIC_CHECK(mzero2 == imat2(0,0,0,0)); + STATIC_CHECK(mzero3 == imat3(0,0,0,0,0,0,0,0,0)); + STATIC_CHECK(mzero4 == imat4(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)); - STATIC_CHECK(unit2x2 == imat2(1,1,1,1)); - STATIC_CHECK(unit3x3 == imat3(1,1,1,1,1,1,1,1,1)); - STATIC_CHECK(unit4x4 == imat4(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)); + STATIC_CHECK(munit2 == imat2(1,1,1,1)); + STATIC_CHECK(munit3 == imat3(1,1,1,1,1,1,1,1,1)); + STATIC_CHECK(munit4 == imat4(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)); - STATIC_CHECK(identity2x2 == imat2()); - STATIC_CHECK(identity3x3 == imat3()); - STATIC_CHECK(identity4x4 == imat4()); + STATIC_CHECK(midentity2 == imat2()); + STATIC_CHECK(midentity3 == imat3()); + STATIC_CHECK(midentity4 == imat4()); STATIC_CHECK(qzero == fqua(zero_init)); STATIC_CHECK(qidentity == fqua(identity_init)); diff --git a/untests/vmath_fix_tests.cpp b/untests/vmath_fix_tests.cpp index 8e33736..0d5ba88 100644 --- a/untests/vmath_fix_tests.cpp +++ b/untests/vmath_fix_tests.cpp @@ -942,42 +942,42 @@ TEST_CASE("vmath/fix_units") { STATIC_CHECK(unit4_w> == fix4f{fix(0.f),fix(0.f),fix(0.f),fix(1.f)}); } { - STATIC_CHECK(zero2x2> == fix2x2f{ + STATIC_CHECK(mzero2> == fix2x2f{ fix(0.f),fix(0.f), fix(0.f),fix(0.f)}); - STATIC_CHECK(zero3x3> == fix3x3f{ + STATIC_CHECK(mzero3> == fix3x3f{ fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(0.f)}); - STATIC_CHECK(zero4x4> == fix4x4f{ + STATIC_CHECK(mzero4> == fix4x4f{ fix(0.f),fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(0.f),fix(0.f)}); } { - STATIC_CHECK(unit2x2> == fix2x2f{ + STATIC_CHECK(munit2> == fix2x2f{ fix(1.f),fix(1.f), fix(1.f),fix(1.f)}); - STATIC_CHECK(unit3x3> == fix3x3f{ + STATIC_CHECK(munit3> == fix3x3f{ fix(1.f),fix(1.f),fix(1.f), fix(1.f),fix(1.f),fix(1.f), fix(1.f),fix(1.f),fix(1.f)}); - STATIC_CHECK(unit4x4> == fix4x4f{ + STATIC_CHECK(munit4> == fix4x4f{ fix(1.f),fix(1.f),fix(1.f),fix(1.f), fix(1.f),fix(1.f),fix(1.f),fix(1.f), fix(1.f),fix(1.f),fix(1.f),fix(1.f), fix(1.f),fix(1.f),fix(1.f),fix(1.f)}); } { - STATIC_CHECK(identity2x2> == fix2x2f{ + STATIC_CHECK(midentity2> == fix2x2f{ fix(1.f),fix(0.f), fix(0.f),fix(1.f)}); - STATIC_CHECK(identity3x3> == fix3x3f{ + STATIC_CHECK(midentity3> == fix3x3f{ fix(1.f),fix(0.f),fix(0.f), fix(0.f),fix(1.f),fix(0.f), fix(0.f),fix(0.f),fix(1.f)}); - STATIC_CHECK(identity4x4> == fix4x4f{ + STATIC_CHECK(midentity4> == fix4x4f{ fix(1.f),fix(0.f),fix(0.f),fix(0.f), fix(0.f),fix(1.f),fix(0.f),fix(0.f), fix(0.f),fix(0.f),fix(1.f),fix(0.f),