Plane.h 366 B

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