Plane.hpp 416 B

1234567891011121314151617181920
  1. #ifndef CORE_PLANE_HPP
  2. #define CORE_PLANE_HPP
  3. #include "core/math/Vector.hpp"
  4. #include "core/utils/ArrayString.hpp"
  5. namespace Core {
  6. class Plane final {
  7. Vector3 abc;
  8. float d;
  9. public:
  10. Plane();
  11. Plane(const Vector3& a, const Vector3& b, const Vector3& c);
  12. float getSignedDistance(const Vector3& v) const;
  13. void toString(BufferString& s) const;
  14. };
  15. }
  16. #endif