a/util: Constify u_box_iou's Box constructor

This commit is contained in:
Moses Turner 2023-01-17 23:41:27 -06:00
parent 1ef49b92f2
commit 8d8b0d03b0

View file

@ -23,9 +23,9 @@ struct Box
// No uninitialized memory!
Box() : cx(0.0f), cy(0.0f), w(0.0f), h(0.0f) {}
Box(float cx, float cy, float w, float h) : cx(cx), cy(cy), w(w), h(h) {}
Box(float cx, float cy, float size) : cx(cx), cy(cy), w(size), h(size) {}
Box(xrt_vec2 &center, float size) : cx(center.x), cy(center.y), w(size), h(size) {}
Box(const float cx, const float cy, const float w, const float h) : cx(cx), cy(cy), w(w), h(h) {}
Box(const float cx, const float cy, const float size) : cx(cx), cy(cy), w(size), h(size) {}
Box(const xrt_vec2 &center, const float size) : cx(center.x), cy(center.y), w(size), h(size) {}
};
static float