mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
File scoped namespaces
This commit is contained in:
parent
c14377f976
commit
65aba44af6
152 changed files with 11962 additions and 12115 deletions
|
|
@ -1,27 +1,26 @@
|
|||
using System;
|
||||
|
||||
namespace MapControl
|
||||
namespace MapControl;
|
||||
|
||||
/// <summary>
|
||||
/// Replaces Windows.Foundation.Point for double floating point precision.
|
||||
/// </summary>
|
||||
public readonly struct Point(double x, double y) : IEquatable<Point>
|
||||
{
|
||||
/// <summary>
|
||||
/// Replaces Windows.Foundation.Point for double floating point precision.
|
||||
/// </summary>
|
||||
public readonly struct Point(double x, double y) : IEquatable<Point>
|
||||
{
|
||||
public double X => x;
|
||||
public double Y => y;
|
||||
public double X => x;
|
||||
public double Y => y;
|
||||
|
||||
public static implicit operator Windows.Foundation.Point(Point p) => new(p.X, p.Y);
|
||||
public static implicit operator Windows.Foundation.Point(Point p) => new(p.X, p.Y);
|
||||
|
||||
public static implicit operator Point(Windows.Foundation.Point p) => new(p.X, p.Y);
|
||||
public static implicit operator Point(Windows.Foundation.Point p) => new(p.X, p.Y);
|
||||
|
||||
public static bool operator ==(Point p1, Point p2) => p1.Equals(p2);
|
||||
public static bool operator ==(Point p1, Point p2) => p1.Equals(p2);
|
||||
|
||||
public static bool operator !=(Point p1, Point p2) => !p1.Equals(p2);
|
||||
public static bool operator !=(Point p1, Point p2) => !p1.Equals(p2);
|
||||
|
||||
public bool Equals(Point p) => X == p.X && Y == p.Y;
|
||||
public bool Equals(Point p) => X == p.X && Y == p.Y;
|
||||
|
||||
public override bool Equals(object obj) => obj is Point p && Equals(p);
|
||||
public override bool Equals(object obj) => obj is Point p && Equals(p);
|
||||
|
||||
public override int GetHashCode() => X.GetHashCode() ^ Y.GetHashCode();
|
||||
}
|
||||
public override int GetHashCode() => X.GetHashCode() ^ Y.GetHashCode();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue