karl 90d8b0479d Add basic pathfinding API
This should cover all requirements from the assignment, but a more specific use case will be added later.
2021-03-31 14:49:25 +02:00

16 lines
345 B
C++

#pragma once
#include "Vector3.h"
namespace Gedeng {
class Path {
// Return a Vector3 on the path. `t` should be between 0 (path begin) and 1
// (path end).
Vector3 get_interpolated_position(float t) const;
// Return the number of Vector3's which make up the path.
unsigned int get_size() const;
};
} // namespace Gedeng