mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix math functions
This commit is contained in:
parent
5d809ef5c9
commit
fa1d769bdf
76 changed files with 582 additions and 169 deletions
|
@ -53,7 +53,7 @@ namespace sprout {
|
|||
, frequency_(1)
|
||||
, amplitude_(1)
|
||||
, phase_(0)
|
||||
, d_(value_type(2) * sprout::math::pi<value_type>())
|
||||
, d_(sprout::math::two_pi<value_type>())
|
||||
{}
|
||||
sinusoid_iterator(sinusoid_iterator const&) = default;
|
||||
explicit SPROUT_CONSTEXPR sinusoid_iterator(
|
||||
|
@ -66,7 +66,7 @@ namespace sprout {
|
|||
, frequency_(frequency)
|
||||
, amplitude_(amplitude)
|
||||
, phase_(phase)
|
||||
, d_(value_type(2) * sprout::math::pi<value_type>() * frequency)
|
||||
, d_(sprout::math::two_pi<value_type>() * frequency)
|
||||
{}
|
||||
template<typename U>
|
||||
SPROUT_CONSTEXPR sinusoid_iterator(sinusoid_iterator<U> const& it)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue