From 031722ebb2f98cedb391aa628e4e7c06fb633a33 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Wed, 2 Sep 2020 19:12:28 +0300 Subject: [PATCH] Change IsEmpty on IsDefault --- src/Avalonia.Visuals/Point.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index 52fd4d05c9..ae713e57a5 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -345,19 +345,12 @@ namespace Avalonia y = this._y; } - /// - /// Returns a boolean indicating whether the point is equal to the other given point. - /// - /// The other point to test equality against. - /// True if this point is equal to other; False otherwise. - - /// /// Returns a boolean indicating whether the point is equal to cortege off double numbers. /// /// Ņortege off double numbers /// - /// True if is cortege off double numbersthat equals the current point. + /// True if is cortege off double numbersthat equals the current point. /// public bool Equals((double x, double y) other) { @@ -368,7 +361,7 @@ namespace Avalonia /// /// Gets a value indicating that Point coordinatrs is zero /// - public bool IsEmpty + public bool IsDefault { get { return (_x == 0) && (_y == 0); } }