Plane.h 286 B

123456789101112131415161718
  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 Vector3& va, const Vector3& vb, const Vector3& vc);
  8. float getSignedDistance(const Vector3& v) const;
  9. private:
  10. Vector3 abc;
  11. float d;
  12. };
  13. #endif