Back to class index
| Polygon::ConvexIntersectsSyntaxbool Polygon::ConvexIntersects(const AABB &aabb) const; [4 lines of code]bool Polygon::ConvexIntersects(const OBB &obb) const; [4 lines of code] bool Polygon::ConvexIntersects(const Frustum &frustum) const; [4 lines of code] Tests whether this convex polygon and the given object intersect. Note These functions make an implicit assumption that this polygon is convex. If you call these functions on a convex polygon, the intersection test is effectively performed on the convex hull of this polygon, meaning that it can result in false positives, so these functions can still be useful as an approximate or an early-out test for concave polygons. |