Optimize BoundingFrustum::Intersects(BoundingSphere)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user