mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 23:45:05 +00:00
Add WinUI/UWP Rect for double precision
This commit is contained in:
parent
9280743c8a
commit
498a60a2ec
16 changed files with 102 additions and 41 deletions
|
|
@ -5,7 +5,7 @@
|
|||
namespace MapControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Replaces Windows.Foundation.Point to achieve necessary floating point precision.
|
||||
/// Replaces Windows.Foundation.Point for double floating point precision.
|
||||
/// </summary>
|
||||
public struct Point
|
||||
{
|
||||
|
|
@ -63,9 +63,9 @@ namespace MapControl
|
|||
return !(p1 == p2);
|
||||
}
|
||||
|
||||
public override bool Equals(object o)
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return o is Point && this == (Point)o;
|
||||
return obj is Point p && this == p;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue