Added: Accessors in bounding_box class allowing access to vertices array.

This commit is contained in:
Foxar
2020-12-21 18:30:18 +01:00
parent 71ce30a8fc
commit ae15906c99
@@ -66,6 +66,13 @@ public:
const BoundingBoxFace &getTopFace() { return _topFace; };
/** Return the bottom face (nearer on y-axis) */
const BoundingBoxFace &getBottomFace() { return _bottomFace; };
/**
* Returns bounding box raw vertices array.
* Total length: 8
*/
Vector3 &getVertex(const u8 &i) { return _vertices[i]; };
/** Returns single vertex from raw vertices array.*/
Vector3 *getVertices() { return _vertices; };
private:
Vector3 _vertices[8];