The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/util: Constify u_box_iou's Box constructor

+3 -3
+3 -3
src/xrt/auxiliary/util/u_box_iou.hpp
··· 23 23 24 24 // No uninitialized memory! 25 25 Box() : cx(0.0f), cy(0.0f), w(0.0f), h(0.0f) {} 26 - Box(float cx, float cy, float w, float h) : cx(cx), cy(cy), w(w), h(h) {} 27 - Box(float cx, float cy, float size) : cx(cx), cy(cy), w(size), h(size) {} 28 - Box(xrt_vec2 &center, float size) : cx(center.x), cy(center.y), w(size), h(size) {} 26 + Box(const float cx, const float cy, const float w, const float h) : cx(cx), cy(cy), w(w), h(h) {} 27 + Box(const float cx, const float cy, const float size) : cx(cx), cy(cy), w(size), h(size) {} 28 + Box(const xrt_vec2 &center, const float size) : cx(center.x), cy(center.y), w(size), h(size) {} 29 29 }; 30 30 31 31 static float