Browse Source

Review fixes.

pull/4132/head
Dariusz Komosinski 6 years ago
parent
commit
914e789114
  1. 3
      src/Avalonia.Visuals/Size.cs
  2. 3
      src/Avalonia.Visuals/Vector.cs

3
src/Avalonia.Visuals/Size.cs

@ -208,7 +208,8 @@ namespace Avalonia
/// <returns>True if this size is equal to other; False otherwise.</returns> /// <returns>True if this size is equal to other; False otherwise.</returns>
public bool NearlyEquals(Size other) public bool NearlyEquals(Size other)
{ {
return MathUtilities.AreClose(_width, other._width) && MathUtilities.AreClose(_height, other._height); return MathUtilities.AreClose(_width, other._width) &&
MathUtilities.AreClose(_height, other._height);
} }
/// <summary> /// <summary>

3
src/Avalonia.Visuals/Vector.cs

@ -155,7 +155,8 @@ namespace Avalonia
/// <returns>True if vectors are nearly equal.</returns> /// <returns>True if vectors are nearly equal.</returns>
public bool NearlyEquals(Vector other) public bool NearlyEquals(Vector other)
{ {
return MathUtilities.AreClose(_x, other._x) && MathUtilities.AreClose(_y, other._y); return MathUtilities.AreClose(_x, other._x) &&
MathUtilities.AreClose(_y, other._y);
} }
public override bool Equals(object obj) => obj is Vector other && Equals(other); public override bool Equals(object obj) => obj is Vector other && Equals(other);

Loading…
Cancel
Save