Skip to content

Commit

Permalink
errors in assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Sep 8, 2023
1 parent fed133c commit 94a6992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/kyosu/functions/to_euler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace kyosu::tags
) noexcept
requires(I != J && J != K)
{
return kumi::tuple{zero(as<V>()), zero(as<V>()), zero(as<V>())};
return kumi::tuple{eve::zero(eve::as<V>()), eve::zero(eve::as<V>()), eve::zero(eve::as<V>())};
}

template<typename T0, int I, int J, int K, bool Extrinsic>
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/functions/to_rotation_matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace kyosu::tags
, [[maybe_unused]] V const & q
, nor<normalize>) noexcept
{
if constexpr (!normalize) EVE_ASSERT(eve::all(kyosu::is_unitary(v)), "some quaternions are not unitary");
if constexpr (!normalize) EVE_ASSERT(eve::all(kyosu::is_unitary(q)), "some quaternions are not unitary");
using m_t = std::array< std::array<V, 3>, 3>;
return m_t{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} ;

Expand Down

0 comments on commit 94a6992

Please sign in to comment.