Plane.h 444 B

1234567891011121314151617
  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. #define CORE_PLANE ((CorePlane){0})
  9. CorePlane* coreInitPlane(CorePlane* p, const CoreVector3* a,
  10. const CoreVector3* b, const CoreVector3* c);
  11. float coreGetSignedDistance(CorePlane* p, const CoreVector3* v);
  12. size_t coreToStringPlane(const CorePlane* p, char* buffer, size_t n);
  13. #endif