mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
functionality to compute subquad ids and corners
This commit is contained in:
@@ -9,7 +9,12 @@ namespace vb01{
|
||||
public:
|
||||
Quad(Vector3, bool = true, int numVertDiv = 0, int numHorDiv = 0);
|
||||
void setSize(Vector3);
|
||||
Vector3 getSubquadCorner(int, int, int, int, bool, bool);
|
||||
Vector2 getSubquadIds(int, int, Vector3, Vector3);
|
||||
inline Vector3 getSize(){return size;}
|
||||
inline Vector2 getSubquadSize(){return Vector2(size.x / (numHorDiv + 1), size.y / (numVertDiv + 1));}
|
||||
inline int getNumHorSubquads(){return numHorDiv + 1;}
|
||||
inline int getNumVertSubquads(){return numVertDiv + 1;}
|
||||
private:
|
||||
Vector3 size;
|
||||
bool spatial;
|
||||
|
||||
Reference in New Issue
Block a user