Plane.h 314 B

1234567891011121314151617181920
  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. private:
  10. float a;
  11. float b;
  12. float c;
  13. float d;
  14. };
  15. #endif