Fix invalid pattern match in CircleF

This commit is contained in:
Oliver Booth 2022-06-01 15:33:44 +01:00
parent 9c1714b419
commit e182b0f821
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System.Drawing;
using System.Drawing;
using System.Numerics;
using X10D.Numerics;
@ -208,7 +208,7 @@ public readonly struct CircleF : IEquatable<CircleF>, IComparable<CircleF>, ICom
return 1;
}
if (obj is not Circle other)
if (obj is not CircleF other)
{
throw new ArgumentException($"Object must be of type {GetType()}");
}