Box.h 533 B

123456789101112131415161718
  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. CoreBox* coreSetBox(CoreBox* box, const CoreVector3* size);
  9. CoreBox* coreOffsetBox(CoreBox* box, const CoreVector3* offset);
  10. bool coreCollidesWithBox(const CoreBox* box, const CoreBox* other);
  11. CoreBox* coreExpandBox(CoreBox* box, const CoreVector3* offset);
  12. CoreBox* coreGrowBox(CoreBox* box, const CoreVector3* growth);
  13. size_t coreToStringBox(const CoreBox* box, char* buffer, size_t n);
  14. #endif