Plane.h 322 B

123456789101112131415161718192021
  1. #ifndef PLANE3D_H
  2. #define PLANE3D_H
  3. #include "client/math/Vector.h"
  4. class Plane final
  5. {
  6. public:
  7. Plane();
  8. void set(const Vector& va, const Vector& vb, const Vector& vc);
  9. float getSignedDistance(float x, float y, float z) const;
  10. private:
  11. float a;
  12. float b;
  13. float c;
  14. float d;
  15. };
  16. #endif