1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/math/quaternion/sin.hpp
2016-02-27 01:21:46 +09:00

60 lines
2 KiB
C++

/*=============================================================================
Copyright (c) 2011-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef SPROUT_MATH_QUATERNION_SIN_HPP
#define SPROUT_MATH_QUATERNION_SIN_HPP
#include <sprout/config.hpp>
#include <sprout/math/cos.hpp>
#include <sprout/math/sin.hpp>
#include <sprout/math/cosh.hpp>
//#include <sprout/math/sinhc.hpp>
#include <sprout/math/quaternion/quaternion.hpp>
#include <sprout/math/quaternion/real.hpp>
#include <sprout/math/quaternion/unreal.hpp>
#include <sprout/math/quaternion/abs.hpp>
namespace sprout {
namespace math {
//
// sin
//
// !!!
// namespace detail {
// template<typename T>
// inline SPROUT_CONSTEXPR sprout::math::quaternion<T>
// sin_impl_1(sprout::math::quaternion<T> const& q, T const& z, T const& w) {
// return sprout::math::quaternion<T>(
// sprout::math::sin(sprout::math::real(q)) * sprout::math::cosh(z),
// w * q.R_component_2(),
// w * q.R_component_3(),
// w * q.R_component_4()
// );
// }
// template<typename T>
// inline SPROUT_CONSTEXPR sprout::math::quaternion<T>
// sin_impl(sprout::math::quaternion<T> const& q, T const& z) {
// return sprout::math::detail::sin_impl_1(
// q, z,
// +sprout::math::cos(sprout::math::real(q)) * sprout::math::sinhc_pi(z)
// );
// }
// } // namespace detail
// template<typename T>
// inline SPROUT_CONSTEXPR sprout::math::quaternion<T>
// sin(sprout::math::quaternion<T> const& q) {
// return sprout::math::detail::sin_impl(
// q,
// sprout::math::abs(sprout::math::unreal(q))
// );
// }
} // namespace math
// using sprout::math::sin;
} // namespace sprout
#endif // #ifndef SPROUT_MATH_QUATERNION_SIN_HPP