#ifndef DRONE_HH #define DRONE_HH #include "opengl_mesh.hh" #include "waypoint.hh" #include #include #include template static T lerp(T a, T b, double factor) { return a + (factor * (b - a)); } class Drone { static OpenGLMesh *mesh; static bool mesh_initialized; QVector waypoints; int mesh_id; QVector3D pos; int id; public: Drone(int id); Drone(const QJsonObject &json); const QVector getWaypoints() const; void setTo(int frame); QVector3D getPos() const; int getId() const; }; #endif