Optimize BoundingFrustum::Intersects(BoundingSphere)

This commit is contained in:
Wojtek Figat
2022-10-29 21:13:21 +02:00
parent 00be6ffb89
commit f1b67935b3
4 changed files with 16 additions and 5 deletions

View File

@@ -235,10 +235,7 @@ public:
/// </summary>
/// <param name="sphere">The sphere.</param>
/// <returns>True if the current BoundingFrustum intersects a BoundingSphere, otherwise false.</returns>
FORCE_INLINE bool Intersects(const BoundingSphere& sphere) const
{
return Contains(sphere) != ContainmentType::Disjoint;
}
bool Intersects(const BoundingSphere& sphere) const;
/// <summary>
/// Checks whether the current BoundingFrustum intersects a BoundingBox.