Plane.h 332 B

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