We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32e8801 commit 9970f33Copy full SHA for 9970f33
src/engine/world/mpr.h
@@ -41,6 +41,14 @@ namespace mpr
41
SolidCube(const vec &o, int size) : o(o), size(size) {}
42
SolidCube(const ivec &o, int size) : o(o), size(size) {}
43
44
+ /**
45
+ * @brief Returns SolidCube::o plus half of size.
46
+ *
47
+ * Returns value equal to elementwise sum of size/2 and o. That is, half
48
+ * of size is added to each of o's x, y, z fields.
49
50
+ * @return vec containing sum of o, size/2
51
+ */
52
vec center() const;
53
vec supportpoint(const vec &n) const;
54
};
0 commit comments