From c25a130903faca7764b7e45f8b13e9fd3fde04fa Mon Sep 17 00:00:00 2001 From: GMIKE Date: Tue, 1 Sep 2020 01:07:49 +0300 Subject: [PATCH 01/10] Useful methods and operations --- src/Avalonia.Visuals/Point.cs | 115 ++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index 4cce2c925b..f9ae1f2fe1 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -76,6 +76,17 @@ namespace Avalonia return left.Equals(right); } + /// + /// Checks for equality between a point and cortege off double numbers s. + /// + /// The point. + /// Cortege off double numbers + /// True if the point and cortege off double numbers are equal; otherwise false. + public static bool operator ==(Point left, (double x, double y) right) + { + return !((left._x.Equals(right.x)) && (left._y.Equals(right.y))); + } + /// /// Checks for inequality between two s. /// @@ -87,6 +98,17 @@ namespace Avalonia return !(left == right); } + /// + /// Checks for inequality between a point and cortege off double numberss. + /// + /// The point. + /// Cortege off double numbers + /// True if the point and cortege off double numbers are unequal; otherwise false. + public static bool operator !=(Point left, (double x, double y) right) + { + return !((left._x == right.x) && (left._y== right.y)); + } + /// /// Adds two points. /// @@ -109,6 +131,28 @@ namespace Avalonia return new Point(a._x + b.X, a._y + b.Y); } + /// + /// Add a cortege off double numbers + /// + /// The point. + /// cortege off doubles + /// A point that is the result of the addition. + public static Point operator +(Point a, (double x, double y) b) + { + return new Point(a._x + b.x, a._y + b.y); + } + + /// + /// Add a double number to both coordinates + /// + /// The point. + /// double number + /// A point that is the result of the addition. + public static Point operator +(Point a, double b) + { + return new Point(a._x + b, a._y + b); + } + /// /// Subtracts two points. /// @@ -131,6 +175,28 @@ namespace Avalonia return new Point(a._x - b.X, a._y - b.Y); } + /// + /// Subtracts a cortege off double numbers + /// + /// The point. + /// cortege off doubles + /// A point that is the result of the subtraction. + public static Point operator -(Point a, (double x, double y) b) + { + return new Point(a._x - b.x, a._y - b.y); + } + + /// + /// Subtracts a double number to both coordinates + /// + /// The point. + /// double number + /// A point that is the result of the subtraction. + public static Point operator -(Point a, double b) + { + return new Point(a._x - b, a._y - b); + } + /// /// Multiplies a point by a factor coordinate-wise /// @@ -147,6 +213,17 @@ namespace Avalonia /// Points having its coordinates multiplied public static Point operator *(double k, Point p) => new Point(p.X * k, p.Y * k); + /// + /// Multiplies a cortege off double numbers + /// + /// The point. + /// cortege off doubles + /// Points having its coordinates multiplied. + public static Point operator *(Point a, (double x, double y) b) + { + return new Point(a._x * b.x, a._y * b.y); + } + /// /// Divides a point by a factor coordinate-wise /// @@ -155,6 +232,17 @@ namespace Avalonia /// Points having its coordinates divided public static Point operator /(Point p, double k) => new Point(p.X / k, p.Y / k); + /// + /// Divides a point by a cortege off double numbers + /// + /// The point. + /// cortege off doubles + /// Points having its coordinates divided + public static Point operator /(Point a, (double x, double y) b) + { + return new Point(a._x / b.x, a._y / b.y); + } + /// /// Applies a matrix to a point. /// @@ -267,5 +355,32 @@ namespace Avalonia { return new Point(_x, y); } + + /// + /// Returns a new point with the opposite coordinates. + /// + /// The new point. + public Point Miror() + { + return new Point(-_x, -_y); + } + + /// + /// Returns a new point with the opposite X coordinate. + /// + /// The new point. + public Point WithMirorX() + { + return new Point(-_x, _y); + } + + /// + /// Returns a new point with the opposite Y coordinate. + /// + /// The new point. + public Point WithMirorY() + { + return new Point(_x, -_y); + } } } From 8e03d121ac1357d94e9ece9fcd2e06d9b175c264 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Tue, 1 Sep 2020 14:10:20 +0300 Subject: [PATCH 02/10] Deconstruct and IsEmpty propterty --- src/Avalonia.Visuals/Point.cs | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index f9ae1f2fe1..2e77f5528b 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -357,30 +357,22 @@ namespace Avalonia } /// - /// Returns a new point with the opposite coordinates. + /// Deconstructor for decomposition Point /// - /// The new point. - public Point Miror() - { - return new Point(-_x, -_y); - } - - /// - /// Returns a new point with the opposite X coordinate. - /// - /// The new point. - public Point WithMirorX() + /// The X position. + /// The Y position. + public void Deconstruct(out double x, out double y) { - return new Point(-_x, _y); + x = this._x; + y = this._y; } /// - /// Returns a new point with the opposite Y coordinate. + /// Gets a value indicating that Point coordinatrs is zero /// - /// The new point. - public Point WithMirorY() + public bool IsEmpty { - return new Point(_x, -_y); + get { return (_x == 0) && (_y == 0); } } } } From a339c68e8cb5ac4741a6bff936b0b462f1a155ca Mon Sep 17 00:00:00 2001 From: GMIKE Date: Tue, 1 Sep 2020 16:18:15 +0300 Subject: [PATCH 03/10] Equals for cortege off double numbers --- src/Avalonia.Visuals/Point.cs | 44 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index 2e77f5528b..52fd4d05c9 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -8,7 +8,7 @@ namespace Avalonia /// /// Defines a point. /// - public readonly struct Point : IEquatable + public readonly struct Point : IEquatable, IEquatable<(double x,double y)> { static Point() { @@ -76,17 +76,6 @@ namespace Avalonia return left.Equals(right); } - /// - /// Checks for equality between a point and cortege off double numbers s. - /// - /// The point. - /// Cortege off double numbers - /// True if the point and cortege off double numbers are equal; otherwise false. - public static bool operator ==(Point left, (double x, double y) right) - { - return !((left._x.Equals(right.x)) && (left._y.Equals(right.y))); - } - /// /// Checks for inequality between two s. /// @@ -98,17 +87,6 @@ namespace Avalonia return !(left == right); } - /// - /// Checks for inequality between a point and cortege off double numberss. - /// - /// The point. - /// Cortege off double numbers - /// True if the point and cortege off double numbers are unequal; otherwise false. - public static bool operator !=(Point left, (double x, double y) right) - { - return !((left._x == right.x) && (left._y== right.y)); - } - /// /// Adds two points. /// @@ -367,6 +345,26 @@ 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. + /// + public bool Equals((double x, double y) other) + { + return _x == other.x && + _y == other.y; + } + /// /// Gets a value indicating that Point coordinatrs is zero /// From 031722ebb2f98cedb391aa628e4e7c06fb633a33 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Wed, 2 Sep 2020 19:12:28 +0300 Subject: [PATCH 04/10] 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); } } From 115c4adadbb5f3d9cadbe53cdb78e617d9602d45 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Wed, 2 Sep 2020 19:51:18 +0300 Subject: [PATCH 05/10] fix for xml --- src/Avalonia.Visuals/Point.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index ae713e57a5..d95512c976 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -110,10 +110,10 @@ namespace Avalonia } /// - /// Add a cortege off double numbers + /// Add a 2-tuple of double /// /// The point. - /// cortege off doubles + /// 2-tuple of double /// A point that is the result of the addition. public static Point operator +(Point a, (double x, double y) b) { @@ -154,10 +154,10 @@ namespace Avalonia } /// - /// Subtracts a cortege off double numbers + /// Subtracts a 2-tuple of double /// /// The point. - /// cortege off doubles + /// 2-tuple of double /// A point that is the result of the subtraction. public static Point operator -(Point a, (double x, double y) b) { @@ -192,10 +192,10 @@ namespace Avalonia public static Point operator *(double k, Point p) => new Point(p.X * k, p.Y * k); /// - /// Multiplies a cortege off double numbers + /// Multiplies a 2-tuple of double /// /// The point. - /// cortege off doubles + /// 2-tuple of double /// Points having its coordinates multiplied. public static Point operator *(Point a, (double x, double y) b) { @@ -211,10 +211,10 @@ namespace Avalonia public static Point operator /(Point p, double k) => new Point(p.X / k, p.Y / k); /// - /// Divides a point by a cortege off double numbers + /// Divides a point by a 2-tuple of doubles /// /// The point. - /// cortege off doubles + /// 2-tuple of double /// Points having its coordinates divided public static Point operator /(Point a, (double x, double y) b) { @@ -346,11 +346,11 @@ namespace Avalonia } /// - /// Returns a boolean indicating whether the point is equal to cortege off double numbers. + /// Returns a boolean indicating whether the point coordinates are equal to 2-tuple of double /// - /// Ņortege off double numbers + /// 2-tuple of double /// - /// True if is cortege off double numbersthat equals the current point. + /// True if is 2-tuple of double equals coordinates current point. /// public bool Equals((double x, double y) other) { @@ -359,7 +359,7 @@ namespace Avalonia } /// - /// Gets a value indicating that Point coordinatrs is zero + /// Gets a value indicating that point coordinates are zero /// public bool IsDefault { From 6650407c2538e64e9de1f70739b1f3b90ce3bd4f Mon Sep 17 00:00:00 2001 From: GMIKE Date: Thu, 17 Sep 2020 22:04:20 +0300 Subject: [PATCH 06/10] Deconstructors --- src/Avalonia.Visuals/Point.cs | 87 ------------------------------- src/Avalonia.Visuals/Size.cs | 11 ++++ src/Avalonia.Visuals/Thickness.cs | 16 ++++++ src/Avalonia.Visuals/Vector.cs | 11 ++++ 4 files changed, 38 insertions(+), 87 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index d95512c976..a23ad98aeb 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -109,28 +109,6 @@ namespace Avalonia return new Point(a._x + b.X, a._y + b.Y); } - /// - /// Add a 2-tuple of double - /// - /// The point. - /// 2-tuple of double - /// A point that is the result of the addition. - public static Point operator +(Point a, (double x, double y) b) - { - return new Point(a._x + b.x, a._y + b.y); - } - - /// - /// Add a double number to both coordinates - /// - /// The point. - /// double number - /// A point that is the result of the addition. - public static Point operator +(Point a, double b) - { - return new Point(a._x + b, a._y + b); - } - /// /// Subtracts two points. /// @@ -153,28 +131,6 @@ namespace Avalonia return new Point(a._x - b.X, a._y - b.Y); } - /// - /// Subtracts a 2-tuple of double - /// - /// The point. - /// 2-tuple of double - /// A point that is the result of the subtraction. - public static Point operator -(Point a, (double x, double y) b) - { - return new Point(a._x - b.x, a._y - b.y); - } - - /// - /// Subtracts a double number to both coordinates - /// - /// The point. - /// double number - /// A point that is the result of the subtraction. - public static Point operator -(Point a, double b) - { - return new Point(a._x - b, a._y - b); - } - /// /// Multiplies a point by a factor coordinate-wise /// @@ -191,17 +147,6 @@ namespace Avalonia /// Points having its coordinates multiplied public static Point operator *(double k, Point p) => new Point(p.X * k, p.Y * k); - /// - /// Multiplies a 2-tuple of double - /// - /// The point. - /// 2-tuple of double - /// Points having its coordinates multiplied. - public static Point operator *(Point a, (double x, double y) b) - { - return new Point(a._x * b.x, a._y * b.y); - } - /// /// Divides a point by a factor coordinate-wise /// @@ -210,17 +155,6 @@ namespace Avalonia /// Points having its coordinates divided public static Point operator /(Point p, double k) => new Point(p.X / k, p.Y / k); - /// - /// Divides a point by a 2-tuple of doubles - /// - /// The point. - /// 2-tuple of double - /// Points having its coordinates divided - public static Point operator /(Point a, (double x, double y) b) - { - return new Point(a._x / b.x, a._y / b.y); - } - /// /// Applies a matrix to a point. /// @@ -344,26 +278,5 @@ namespace Avalonia x = this._x; y = this._y; } - - /// - /// Returns a boolean indicating whether the point coordinates are equal to 2-tuple of double - /// - /// 2-tuple of double - /// - /// True if is 2-tuple of double equals coordinates current point. - /// - public bool Equals((double x, double y) other) - { - return _x == other.x && - _y == other.y; - } - - /// - /// Gets a value indicating that point coordinates are zero - /// - public bool IsDefault - { - get { return (_x == 0) && (_y == 0); } - } } } diff --git a/src/Avalonia.Visuals/Size.cs b/src/Avalonia.Visuals/Size.cs index f87b336b50..0faa4cc496 100644 --- a/src/Avalonia.Visuals/Size.cs +++ b/src/Avalonia.Visuals/Size.cs @@ -276,5 +276,16 @@ namespace Avalonia { return string.Format(CultureInfo.InvariantCulture, "{0}, {1}", _width, _height); } + + /// + /// Deconstructor for decomposition Size + /// + /// The width. + /// The height. + public void Deconstruct(out double width, out double height) + { + width = this._width; + height = this._height; + } } } diff --git a/src/Avalonia.Visuals/Thickness.cs b/src/Avalonia.Visuals/Thickness.cs index b03e91bf34..aba34e6895 100644 --- a/src/Avalonia.Visuals/Thickness.cs +++ b/src/Avalonia.Visuals/Thickness.cs @@ -272,5 +272,21 @@ namespace Avalonia { return $"{_left},{_top},{_right},{_bottom}"; } + + /// + /// Deconstructor for decomposition Thickness + /// + /// The thickness on the left. + /// The thickness on the top. + /// The thickness on the right. + /// The thickness on the bottom. + public void Deconstruct(out double left, out double top, out double right, out double bottom) + { + left = this._left; + top = this._top; + right = this._right; + bottom = this._bottom; + + } } } diff --git a/src/Avalonia.Visuals/Vector.cs b/src/Avalonia.Visuals/Vector.cs index 6059dc3971..ab8c6991dc 100644 --- a/src/Avalonia.Visuals/Vector.cs +++ b/src/Avalonia.Visuals/Vector.cs @@ -333,5 +333,16 @@ namespace Avalonia /// public static Vector UnitY => new Vector(0, 1); + + /// + /// Deconstructor for decomposition Vector + /// + /// The X component. + /// The Y poscomponentition. + public void Deconstruct(out double x, out double y) + { + x = this._x; + y = this._y; + } } } From 6f84af5b7abe6bdce581aea0fc44011193477741 Mon Sep 17 00:00:00 2001 From: GMIKE Date: Thu, 17 Sep 2020 22:05:28 +0300 Subject: [PATCH 07/10] remove IEquatable<(double x,double y)> --- src/Avalonia.Visuals/Point.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index a23ad98aeb..7cc61c5120 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -8,7 +8,7 @@ namespace Avalonia /// /// Defines a point. /// - public readonly struct Point : IEquatable, IEquatable<(double x,double y)> + public readonly struct Point : IEquatable { static Point() { From 019043469b2f6cbc73e13364b8756f9e6d36578b Mon Sep 17 00:00:00 2001 From: GMIKE Date: Thu, 17 Sep 2020 22:16:53 +0300 Subject: [PATCH 08/10] IsDefault methods --- src/Avalonia.Visuals/Point.cs | 8 ++++++++ src/Avalonia.Visuals/Size.cs | 8 ++++++++ src/Avalonia.Visuals/Thickness.cs | 11 +++++++++-- src/Avalonia.Visuals/Vector.cs | 8 ++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index 7cc61c5120..30dd01ce38 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -278,5 +278,13 @@ namespace Avalonia x = this._x; y = this._y; } + + /// + /// Gets a value indicating that point coordinates are zero + /// + public bool IsDefault + { + get { return (_x == 0) && (_y == 0); } + } } } diff --git a/src/Avalonia.Visuals/Size.cs b/src/Avalonia.Visuals/Size.cs index 0faa4cc496..bff6d787ee 100644 --- a/src/Avalonia.Visuals/Size.cs +++ b/src/Avalonia.Visuals/Size.cs @@ -287,5 +287,13 @@ namespace Avalonia width = this._width; height = this._height; } + + /// + /// Gets a value indicating that width and height are zero + /// + public bool IsDefault + { + get { return (_width == 0) && (_height == 0); } + } } } diff --git a/src/Avalonia.Visuals/Thickness.cs b/src/Avalonia.Visuals/Thickness.cs index aba34e6895..33ac001cef 100644 --- a/src/Avalonia.Visuals/Thickness.cs +++ b/src/Avalonia.Visuals/Thickness.cs @@ -285,8 +285,15 @@ namespace Avalonia left = this._left; top = this._top; right = this._right; - bottom = this._bottom; - + bottom = this._bottom; + } + + /// + /// Gets a value indicating that thickness are zero + /// + public bool IsDefault + { + get { return (_left == 0) && (_top == 0) && (_right == 0) && (_bottom == 0); } } } } diff --git a/src/Avalonia.Visuals/Vector.cs b/src/Avalonia.Visuals/Vector.cs index ab8c6991dc..67c04e4bb3 100644 --- a/src/Avalonia.Visuals/Vector.cs +++ b/src/Avalonia.Visuals/Vector.cs @@ -344,5 +344,13 @@ namespace Avalonia x = this._x; y = this._y; } + + /// + /// Gets a value indicating that Vector components are zero + /// + public bool IsDefault + { + get { return (_x == 0) && (_y == 0); } + } } } From 1a730b7c9e54504969e23a53c6975a95266eb6fd Mon Sep 17 00:00:00 2001 From: GMIKE Date: Tue, 29 Sep 2020 15:19:53 +0300 Subject: [PATCH 09/10] Update and fix comments for the documentation --- src/Avalonia.Visuals/Point.cs | 8 ++++---- src/Avalonia.Visuals/Size.cs | 4 ++-- src/Avalonia.Visuals/Thickness.cs | 4 ++-- src/Avalonia.Visuals/Vector.cs | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index 30dd01ce38..f4612ac1d0 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -269,10 +269,10 @@ namespace Avalonia } /// - /// Deconstructor for decomposition Point + /// Deconstructs the point into it's X and Y coordinates. /// - /// The X position. - /// The Y position. + /// The X coordinate. + /// The Y coordinate. public void Deconstruct(out double x, out double y) { x = this._x; @@ -280,7 +280,7 @@ namespace Avalonia } /// - /// Gets a value indicating that point coordinates are zero + /// Gets a value indicating whether the X and Y coordinates are zero. /// public bool IsDefault { diff --git a/src/Avalonia.Visuals/Size.cs b/src/Avalonia.Visuals/Size.cs index bff6d787ee..e80565b5c0 100644 --- a/src/Avalonia.Visuals/Size.cs +++ b/src/Avalonia.Visuals/Size.cs @@ -278,7 +278,7 @@ namespace Avalonia } /// - /// Deconstructor for decomposition Size + /// Deconstructs the size into it's Width and Height values. /// /// The width. /// The height. @@ -289,7 +289,7 @@ namespace Avalonia } /// - /// Gets a value indicating that width and height are zero + /// Gets a value indicating whether the Width and Height values are zero. /// public bool IsDefault { diff --git a/src/Avalonia.Visuals/Thickness.cs b/src/Avalonia.Visuals/Thickness.cs index 33ac001cef..898f828de0 100644 --- a/src/Avalonia.Visuals/Thickness.cs +++ b/src/Avalonia.Visuals/Thickness.cs @@ -274,7 +274,7 @@ namespace Avalonia } /// - /// Deconstructor for decomposition Thickness + /// Deconstructor the thickness into left, top, right and bottom thickness values. /// /// The thickness on the left. /// The thickness on the top. @@ -289,7 +289,7 @@ namespace Avalonia } /// - /// Gets a value indicating that thickness are zero + /// Gets a value indicating whether the left, top, right and bottom thickness values are zero. /// public bool IsDefault { diff --git a/src/Avalonia.Visuals/Vector.cs b/src/Avalonia.Visuals/Vector.cs index 67c04e4bb3..1e09588b89 100644 --- a/src/Avalonia.Visuals/Vector.cs +++ b/src/Avalonia.Visuals/Vector.cs @@ -335,10 +335,10 @@ namespace Avalonia => new Vector(0, 1); /// - /// Deconstructor for decomposition Vector + /// Deconstructs the vector into it's X and Y components. /// /// The X component. - /// The Y poscomponentition. + /// The Y component. public void Deconstruct(out double x, out double y) { x = this._x; @@ -346,7 +346,7 @@ namespace Avalonia } /// - /// Gets a value indicating that Vector components are zero + /// Gets a value indicating whether the X and Y components are zero. /// public bool IsDefault { From 6a6136d37c180766c3e9f7da2b109c7e6daebc1f Mon Sep 17 00:00:00 2001 From: GMIKE Date: Tue, 29 Sep 2020 15:24:46 +0300 Subject: [PATCH 10/10] it's to its --- src/Avalonia.Visuals/Point.cs | 2 +- src/Avalonia.Visuals/Size.cs | 2 +- src/Avalonia.Visuals/Thickness.cs | 2 +- src/Avalonia.Visuals/Vector.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Visuals/Point.cs b/src/Avalonia.Visuals/Point.cs index f4612ac1d0..7324f5fbd0 100644 --- a/src/Avalonia.Visuals/Point.cs +++ b/src/Avalonia.Visuals/Point.cs @@ -269,7 +269,7 @@ namespace Avalonia } /// - /// Deconstructs the point into it's X and Y coordinates. + /// Deconstructs the point into its X and Y coordinates. /// /// The X coordinate. /// The Y coordinate. diff --git a/src/Avalonia.Visuals/Size.cs b/src/Avalonia.Visuals/Size.cs index e80565b5c0..d87d2c5fc2 100644 --- a/src/Avalonia.Visuals/Size.cs +++ b/src/Avalonia.Visuals/Size.cs @@ -278,7 +278,7 @@ namespace Avalonia } /// - /// Deconstructs the size into it's Width and Height values. + /// Deconstructs the size into its Width and Height values. /// /// The width. /// The height. diff --git a/src/Avalonia.Visuals/Thickness.cs b/src/Avalonia.Visuals/Thickness.cs index 898f828de0..6d69c4d9a9 100644 --- a/src/Avalonia.Visuals/Thickness.cs +++ b/src/Avalonia.Visuals/Thickness.cs @@ -274,7 +274,7 @@ namespace Avalonia } /// - /// Deconstructor the thickness into left, top, right and bottom thickness values. + /// Deconstructor the thickness into its left, top, right and bottom thickness values. /// /// The thickness on the left. /// The thickness on the top. diff --git a/src/Avalonia.Visuals/Vector.cs b/src/Avalonia.Visuals/Vector.cs index 1e09588b89..2fcf804f14 100644 --- a/src/Avalonia.Visuals/Vector.cs +++ b/src/Avalonia.Visuals/Vector.cs @@ -335,7 +335,7 @@ namespace Avalonia => new Vector(0, 1); /// - /// Deconstructs the vector into it's X and Y components. + /// Deconstructs the vector into its X and Y components. /// /// The X component. /// The Y component.