| 12345678910111213141516171819202122232425 |
- export module Core.Box;
- export import Core.Vector;
- export namespace Core {
- class Box final {
- Vector3 min;
- Vector3 max;
- Box(const Vector3& min, const Vector3& max) noexcept;
- public:
- Box(const Vector3& size) noexcept;
- Box offset(const Vector3& offset) const noexcept;
- bool collidesWith(const Box& other) const noexcept;
- Box expand(const Vector3& offset) const noexcept;
- Box grow(const Vector3& growth) const noexcept;
- const Vector3& getMin() const noexcept;
- const Vector3& getMax() const noexcept;
- size_t toString(StringBase& b) const noexcept;
- };
- }
|