Skip to content

Commit

Permalink
Merge pull request #852 from AristurtleDev/fix/intersetcs-recursion-bug
Browse files Browse the repository at this point in the history
Resolves Infinite Recursion with Shape.Intersects(this IShapeF, IShapeF)
  • Loading branch information
AristurtleDev committed May 17, 2024
2 parents 04283d5 + 72e4490 commit 0a25e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs/MonoGame.Extended/Math/ShapeF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static bool Intersects(this IShapeF a, IShapeF b)
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),
Expand Down

0 comments on commit 0a25e0b

Please sign in to comment.