mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:45:41 +00:00
Fix invalid pattern match in CircleF
This commit is contained in:
parent
9c1714b419
commit
e182b0f821
@ -1,4 +1,4 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using X10D.Numerics;
|
using X10D.Numerics;
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ public readonly struct CircleF : IEquatable<CircleF>, IComparable<CircleF>, ICom
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj is not Circle other)
|
if (obj is not CircleF other)
|
||||||
{
|
{
|
||||||
throw new ArgumentException($"Object must be of type {GetType()}");
|
throw new ArgumentException($"Object must be of type {GetType()}");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user