1#ifndef SEAD_BOUNDBOX_H_
2#define SEAD_BOUNDBOX_H_
4#include <math/seadVector.h>
86 void set(T x0, T y0, T x1, T y1);
87 void set(
const Vector2& min,
const Vector2& max);
92 void setFromCenterAndXY(
const Vector2& center, T sizeX, T sizeY) { setFromCenterAndXY(center.x, center.y, sizeX, sizeY); }
118 set(x0, y0, z0, x1, y1, z1);
172 void set(T x0, T y0, T z0, T x1, T y1, T z1);
173 void set(
const Vector3& min,
const Vector3& max);
191static_assert(
sizeof(
BoundBox2f) == 0x10,
"sead::BoundBox2<T> size mismatch");
192static_assert(
sizeof(
BoundBox3f) == 0x18,
"sead::BoundBox3<T> size mismatch");
199#include <math/seadBoundBox.hpp>
Definition seadBoundBox.h:10
void setFromCenterAndXY(const Vector2 ¢er, T sizeX, T sizeY)
Definition seadBoundBox.h:92
Vector2 getTR() const
Definition seadBoundBox.h:75
T getSizeY() const
Definition seadBoundBox.h:35
const Vector2 & getMax() const
Definition seadBoundBox.h:55
void setFromCornerAndXY(T cornerX, T cornerY, T sizeX, T sizeY)
Definition seadBoundBox.hpp:104
void offset(const Vector2 &dv)
Definition seadBoundBox.hpp:130
Vector2 getBL() const
Definition seadBoundBox.h:60
void setUndef()
Definition seadBoundBox.hpp:39
const Vector2 & getMin() const
Definition seadBoundBox.h:50
void offset(T dx, T dy)
Definition seadBoundBox.hpp:120
T getHalfSizeX() const
Definition seadBoundBox.h:40
void set(const Vector2 &min, const Vector2 &max)
Definition seadBoundBox.hpp:74
void setFromCenterAndXY(T centerX, T centerY, T sizeX, T sizeY)
Definition seadBoundBox.hpp:96
BoundBox2()
Definition seadBoundBox.h:15
T getHalfSizeY() const
Definition seadBoundBox.h:45
Vector2 mMax
Definition seadBoundBox.h:101
bool isInside(const Vector2 &p) const
Definition seadBoundBox.hpp:32
BoundBox2(T x0, T y0, T x1, T y1)
Definition seadBoundBox.h:20
void setMin(const Vector2 &min)
Definition seadBoundBox.hpp:82
Vector2 getBR() const
Definition seadBoundBox.h:65
void setMax(const Vector2 &max)
Definition seadBoundBox.hpp:89
Vector2 getCenter() const
Definition seadBoundBox.hpp:9
void scaleY(T sy)
Definition seadBoundBox.hpp:148
void setFromCornerAndXY(const Vector2 &corner, T sizeX, T sizeY)
Definition seadBoundBox.hpp:112
void set(T x0, T y0, T x1, T y1)
Definition seadBoundBox.hpp:47
void getCenter(Vector2 *p) const
Definition seadBoundBox.hpp:17
Vector2 mMin
Definition seadBoundBox.h:100
void scaleX(T sx)
Definition seadBoundBox.hpp:137
T getSizeX() const
Definition seadBoundBox.h:30
Vector2 getTL() const
Definition seadBoundBox.h:70
BoundBox2(const Vector2 &min, const Vector2 &max)
Definition seadBoundBox.h:25
bool isUndef() const
Definition seadBoundBox.hpp:25
Definition seadBoundBox.h:106
void setMax(const Vector3 &max)
Definition seadBoundBox.hpp:252
const Vector3 & getMax() const
Definition seadBoundBox.h:161
BoundBox3(T x0, T y0, T z0, T x1, T y1, T z1)
Definition seadBoundBox.h:116
T getHalfSizeY() const
Definition seadBoundBox.h:146
T getHalfSizeX() const
Definition seadBoundBox.h:141
T getSizeX() const
Definition seadBoundBox.h:126
void scaleX(T sx)
Definition seadBoundBox.hpp:278
T getHalfSizeZ() const
Definition seadBoundBox.h:151
T getSizeY() const
Definition seadBoundBox.h:131
bool isUndef() const
Definition seadBoundBox.hpp:177
const Vector3 & getMin() const
Definition seadBoundBox.h:156
void getCenter(Vector3 *p) const
Definition seadBoundBox.hpp:168
BoundBox3(const Vector3 &min, const Vector3 &max)
Definition seadBoundBox.h:121
Vector3 mMin
Definition seadBoundBox.h:183
void scaleZ(T sz)
Definition seadBoundBox.hpp:300
void setMin(const Vector3 &min)
Definition seadBoundBox.hpp:245
Vector3 mMax
Definition seadBoundBox.h:184
bool isInside(const Vector3 &p) const
Definition seadBoundBox.hpp:184
void scaleY(T sy)
Definition seadBoundBox.hpp:289
void set(const Vector3 &min, const Vector3 &max)
Definition seadBoundBox.hpp:237
void offset(const Vector3 &dv)
Definition seadBoundBox.hpp:271
Vector3 getCenter() const
Definition seadBoundBox.hpp:159
void offset(T dx, T dy, T dz)
Definition seadBoundBox.hpp:259
BoundBox3()
Definition seadBoundBox.h:111
void set(T x0, T y0, T z0, T x1, T y1, T z1)
Definition seadBoundBox.hpp:199
T getSizeZ() const
Definition seadBoundBox.h:136
void setUndef()
Definition seadBoundBox.hpp:191
Definition seadVector.h:11
Definition seadVector.h:87
Definition seadAssert.h:44
BoundBox2< f32 > BoundBox2f
Definition seadBoundBox.h:187
BoundBox3< f32 > BoundBox3f
Definition seadBoundBox.h:188