mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
a/util: Constify u_box_iou's Box constructor
This commit is contained in:
parent
1ef49b92f2
commit
8d8b0d03b0
|
@ -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 ¢er, 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 ¢er, const float size) : cx(center.x), cy(center.y), w(size), h(size) {}
|
||||
};
|
||||
|
||||
static float
|
||||
|
|
Loading…
Reference in a new issue