OSSIA
Open Scenario System for Interactive Application
spline2d.hpp
1 #pragma once
2 #include <vector>
3 
4 namespace ossia
5 {
6 struct spline_point
7 {
8  double x;
9  double y;
10 
11  friend bool operator==(const spline_point& lhs, const spline_point& rhs)
12  {
13  return lhs.x == rhs.x && lhs.y == rhs.y;
14  }
15  friend bool operator!=(const spline_point& lhs, const spline_point& rhs)
16  {
17  return lhs.x != rhs.x || lhs.y != rhs.y;
18  }
19 };
20 
21 struct spline_data
22 {
23  std::vector<spline_point> points;
24 
25  friend bool operator==(const spline_data& lhs, const spline_data& rhs)
26  {
27  return lhs.points == rhs.points;
28  }
29  friend bool operator!=(const spline_data& lhs, const spline_data& rhs)
30  {
31  return lhs.points != rhs.points;
32  }
33 };
34 }
Definition: git_info.h:7