ReC98/th04/math/motion.hpp

15 lines
272 B
C++

#define MOTION_HPP
template <class PointType> struct near MotionBase {
PointType cur;
PointType prev;
PointType velocity;
void init(float screen_x, float screen_y) {
cur.x.set(screen_x);
prev.x.set(screen_x);
cur.y.set(screen_y);
prev.y.set(screen_y);
}
};