Fix AABB::getCenter()

This commit is contained in:
Qiuzhizhe 2023-02-03 18:22:08 -08:00
parent 7a597c698e
commit e277252a1d

View File

@ -50,7 +50,7 @@ public:
MCAPI static class AABB const EMPTY;
inline Vec3 getCenter() const{
return (min + max)/2;
return min+(max-min)*0.5;
};
inline Vec3& operator[](int index) {