Plane.h 292 B

123456789101112131415
  1. #ifndef CORE_PLANE_H
  2. #define CORE_PLANE_H
  3. #include "core/Vector.h"
  4. struct PlaneT {
  5. Vector3 abc;
  6. float d;
  7. };
  8. typedef struct PlaneT Plane;
  9. void initPlane(Plane* p, const Vector3* a, const Vector3* b, const Vector3* c);
  10. float signedDistance(const Plane* p, const Vector3* v);
  11. #endif