From 35f5da4577e789a93107e75adc4970df2ec565dc Mon Sep 17 00:00:00 2001 From: Dariusz Komosinski Date: Tue, 16 Jun 2020 23:14:45 +0200 Subject: [PATCH] Fix a few typos. --- src/Avalonia.Visuals/Vector.cs | 47 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/Avalonia.Visuals/Vector.cs b/src/Avalonia.Visuals/Vector.cs index 1bd1a01b01..52bfd3ae0c 100644 --- a/src/Avalonia.Visuals/Vector.cs +++ b/src/Avalonia.Visuals/Vector.cs @@ -2,7 +2,8 @@ using System; using System.Globalization; using Avalonia.Animation.Animators; using Avalonia.Utilities; -using JetBrains.Annotations; + +#nullable enable namespace Avalonia { @@ -17,20 +18,20 @@ namespace Avalonia } /// - /// The X vector. + /// The X component. /// private readonly double _x; /// - /// The Y vector. + /// The Y component. /// private readonly double _y; /// /// Initializes a new instance of the structure. /// - /// The X vector. - /// The Y vector. + /// The X component. + /// The Y component. public Vector(double x, double y) { _x = x; @@ -38,12 +39,12 @@ namespace Avalonia } /// - /// Gets the X vector. + /// Gets the X component. /// public double X => _x; /// - /// Gets the Y vector. + /// Gets the Y component. /// public double Y => _y; @@ -57,18 +58,18 @@ namespace Avalonia } /// - /// Calculates the dot product of two vectors + /// Calculates the dot product of two vectors. /// - /// First vector - /// Second vector - /// The dot product + /// First vector. + /// Second vector. + /// The dot product. public static double operator *(Vector a, Vector b) => Dot(a, b); /// /// Scales a vector. /// - /// The vector + /// The vector. /// The scaling factor. /// The scaled vector. public static Vector operator *(Vector vector, double scale) @@ -77,7 +78,7 @@ namespace Avalonia /// /// Scales a vector. /// - /// The vector + /// The vector. /// The divisor. /// The scaled vector. public static Vector operator /(Vector vector, double scale) @@ -100,12 +101,12 @@ namespace Avalonia } /// - /// Length of the vector + /// Length of the vector. /// public double Length => Math.Sqrt(SquaredLength); /// - /// Squared Length of the vector + /// Squared Length of the vector. /// public double SquaredLength => _x * _x + _y * _y; @@ -187,9 +188,9 @@ namespace Avalonia } /// - /// Returns a new vector with the specified X coordinate. + /// Returns a new vector with the specified X component. /// - /// The X coordinate. + /// The X component. /// The new vector. public Vector WithX(double x) { @@ -197,9 +198,9 @@ namespace Avalonia } /// - /// Returns a new vector with the specified Y coordinate. + /// Returns a new vector with the specified Y component. /// - /// The Y coordinate. + /// The Y component. /// The new vector. public Vector WithY(double y) { @@ -309,25 +310,25 @@ namespace Avalonia => new Vector(-vector._x, -vector._y); /// - /// Returnes the vector (0.0, 0.0) + /// Returns the vector (0.0, 0.0). /// public static Vector Zero => new Vector(0, 0); /// - /// Returnes the vector (1.0, 1.0) + /// Returns the vector (1.0, 1.0). /// public static Vector One => new Vector(1, 1); /// - /// Returnes the vector (1.0, 0.0) + /// Returns the vector (1.0, 0.0). /// public static Vector UnitX => new Vector(1, 0); /// - /// Returnes the vector (0.0, 1.0) + /// Returns the vector (0.0, 1.0). /// public static Vector UnitY => new Vector(0, 1);