refactor: apply review changes

This commit is contained in:
Wellinator
2022-07-19 09:12:00 -03:00
parent e7e4f375ba
commit 81686a8033
2 changed files with 15 additions and 16 deletions
+4 -5
View File
@@ -42,20 +42,19 @@ class BBox : public CoreBBox {
const BBoxFace& getBottomFace() { return _bottomFace; }
/** @returns the lower (x, y, z) boundary of the box. */
const Vec4 min();
Vec4 min();
/** @returns the upper (x, y, z) boundary of the box. */
const Vec4 max();
Vec4 max();
/**
* @returns void;
* @param res_min Vec4 to store the min result
* @param res_max Vec4 to store the min result
* @brief Calc and stores the min and max points of box at a single loop
* */
void calcMinMax(Vec4& res_min, Vec4& res_max);
void getMinMax(Vec4* res_min, Vec4* res_max);
protected:
float _height, _depth, _width;
Vec4 _centerVector, _min;
Vec4 _centerVector;
/** Front face (further on z-axis) */
BBoxFace _frontFace;
/** Back face (nearer on z-axis) */