Plane3D.h 340 B

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