Box.h 565 B

12345678910111213141516171819
  1. #ifndef CORE_BOX_H
  2. #define CORE_BOX_H
  3. #include "core/Vector.h"
  4. typedef struct {
  5. CoreVector3 min;
  6. CoreVector3 max;
  7. } CoreBox;
  8. #define CORE_BOX ((CoreBox){0})
  9. CoreBox* coreSetBox(CoreBox* box, const CoreVector3* size);
  10. CoreBox* coreOffsetBox(CoreBox* box, const CoreVector3* offset);
  11. bool coreCollidesWithBox(const CoreBox* box, const CoreBox* other);
  12. CoreBox* coreExpandBox(CoreBox* box, const CoreVector3* offset);
  13. CoreBox* coreGrowBox(CoreBox* box, const CoreVector3* growth);
  14. size_t coreToStringBox(const CoreBox* box, char* buffer, size_t n);
  15. #endif