VecPP / vecpp

A simple C++17 vector math library
Boost Software License 1.0
10 stars 4 forks source link

Quat::angle_axis is not constexpr #6

Closed FrancoisChabot closed 6 years ago

FrancoisChabot commented 6 years ago

This will pass on GCC, but fail on clang / MSVC

TEST_CASE("angle_axis_constexp", "[quat]") {
  using fQuat = vecpp::Quat<float>;
  constexpr fQuat r_x = fQuat::angle_axis(fAngle::from_deg(90.0f), {1.0f, 0.0f, 0.0f});
}
FrancoisChabot commented 6 years ago

Quickly going into the weeds here.

I think the best approach will be to implementsin(Angle<T>) and friends using Chebyshev polynomials.