Plane.h 484 B

12345678910111213141516171819202122
  1. #ifndef CORE_PLANE_H
  2. #define CORE_PLANE_H
  3. #include "core/Vector.h"
  4. struct CorePlaneT {
  5. CoreVector3 abc;
  6. float d;
  7. };
  8. typedef struct CorePlaneT CorePlane;
  9. void coreInitPlane(CorePlane* p, const CoreVector3* a, const CoreVector3* b,
  10. const CoreVector3* c);
  11. float coreSignedDistance(const CorePlane* p, const CoreVector3* v);
  12. #ifdef IMPORT_CORE
  13. #define Plane CorePlane
  14. #define initPlane coreInitPlane
  15. #define signedDistance coreSignedDistance
  16. #endif
  17. #endif