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