Plane.h 399 B

12345678910111213141516
  1. #ifndef CORE_PLANE_H
  2. #define CORE_PLANE_H
  3. #include "core/Vector.h"
  4. typedef struct {
  5. CoreVector3 abc;
  6. float d;
  7. } CorePlane;
  8. void coreInitPlane(CorePlane* p, const CoreVector3* a, const CoreVector3* b,
  9. const CoreVector3* c);
  10. float coreSignedDistance(const CorePlane* p, const CoreVector3* v);
  11. size_t coreToStringPlane(const CorePlane* p, char* buffer, size_t n);
  12. #endif