Daniele Bartolini 10 年之前
父節點
當前提交
42ee7269a5
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/core/math/aabb.h

+ 2 - 3
src/core/math/aabb.h

@@ -8,7 +8,6 @@
 #include "math_types.h"
 #include "vector3.h"
 #include "matrix4x4.h"
-#include "sphere.h"
 
 namespace crown
 {
@@ -105,13 +104,13 @@ namespace aabb
 
 	inline bool contains_point(const AABB& b, const Vector3& p)
 	{
-		return (p.x > b.min.x
+		return p.x > b.min.x
 			&& p.y > b.min.y
 			&& p.z > b.min.z
 			&& p.x < b.max.x
 			&& p.y < b.max.y
 			&& p.z < b.max.z
-		);
+			;
 	}
 
 	inline Vector3 vertex(const AABB& b, uint32_t index)