Ray.h 447 B

123456789101112131415161718192021222324252627
  1. #ifndef RAY_H
  2. #define RAY_H
  3. #include "client/math/Vector.h"
  4. class Ray final {
  5. public:
  6. Ray();
  7. void store();
  8. void set(const Vector& position, float lengthAngle, float widthAngle);
  9. Vector getPosition(float lag) const;
  10. Vector getDirection(float lag) const;
  11. private:
  12. Vector lastPosition;
  13. Vector position;
  14. float lastLengthAngle;
  15. float lengthAngle;
  16. float lastWidthAngle;
  17. float widthAngle;
  18. };
  19. #endif