#ifndef DATA_HPP_ #define DATA_HPP_ #include #include using Coordinate = std::array; struct Magnetic { Magnetic(double t, double x, double y, double z) : time(t), field({x, y, z}) {} Magnetic(double t, double x, double y) : time(t), position({x, y}) {} double time; std::array field; Coordinate position; }; struct Position { Position(double t, double x, double y) : time(t), position({x, y}) {} double time; Coordinate position; }; using Magnetics = std::vector; using Positions = std::vector; #endif /* DATA_HPP_ */