OSSIA
Open Scenario System for Interactive Application
sin.hpp
1 #pragma once
2 #include <cmath>
3 namespace ossia
4 {
5 template <typename Y>
6 struct curve_segment_sin
7 {
8  auto operator()(double freq, double phase, double ampl) const
9  {
10  return [=](double ratio, Y start, Y end) {
11  return start + ampl * std::sin(phase + two_pi * ratio * freq) * (end - start);
12  };
13  }
14 };
15 }
Definition: git_info.h:7