Merge pull request #852 from AristurtleDev/fix/intersetcs-recursion-bug

Resolves Infinite Recursion with Shape.Intersects(this IShapeF, IShapeF)
This commit is contained in:
Christopher Whitley
2024-05-17 10:19:01 -04:00
committed by GitHub
+1 -1
View File
@@ -42,7 +42,7 @@ namespace MonoGame.Extended
CircleF circleA when b is OrientedRectangle orientedRectangleB => Intersects(circleA, orientedRectangleB),
RectangleF rectangleA when b is CircleF circleB => Intersects(circleB, rectangleA),
RectangleF rectangleA when b is RectangleF rectangleB => Intersects(rectangleA, rectangleB),
RectangleF rectangleA when b is RectangleF rectangleB => rectangleA.Intersects(rectangleB),
RectangleF rectangleA when b is OrientedRectangle orientedRectangleB => Intersects(rectangleA, orientedRectangleB).Intersects,
OrientedRectangle orientedRectangleA when b is CircleF circleB => Intersects(circleB, orientedRectangleA),