From 0c096d39db7e2057ce1dbc1cc4f98b98659440b4 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Fri, 27 Jun 2025 11:43:44 +0300 Subject: [PATCH] docs: line equation XML comments updated --- Engine.Core/Primitives/Line2DEquation.cs | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Engine.Core/Primitives/Line2DEquation.cs b/Engine.Core/Primitives/Line2DEquation.cs index 3c036c7..5b227f5 100644 --- a/Engine.Core/Primitives/Line2DEquation.cs +++ b/Engine.Core/Primitives/Line2DEquation.cs @@ -1,41 +1,41 @@ namespace Syntriax.Engine.Core; /// -/// Represents a line equation in the form y = mx + b. +/// Represents a in the form y = mx + b. /// /// The slope of the line. -/// The y-intercept of the line. +/// The Y intercept of the line. /// -/// Initializes a new instance of the struct with the specified slope and y-intercept. +/// Initializes a new instance of the struct with the specified slope and Y intercept. /// [System.Diagnostics.DebuggerDisplay("y = {Slope}x + {OffsetY}")] public readonly struct Line2DEquation(float slope, float offsetY) { /// - /// The slope of the line equation. + /// The slope of the . /// public readonly float Slope = slope; /// - /// The y-intercept of the line equation. + /// The Y intercept of the . /// public readonly float OffsetY = offsetY; /// - /// Resolves the y-coordinate for a given x-coordinate using the line equation. + /// Resolves the Y coordinate for a given X coordinate using the . /// - /// The line equation to resolve. - /// The x-coordinate for which to resolve the y-coordinate. - /// The y-coordinate resolved using the line equation. + /// The to resolve. + /// The X coordinate for which to resolve the Y coordinate. + /// The Y coordinate resolved using the . public static float Resolve(Line2DEquation lineEquation, float x) => lineEquation.Slope * x + lineEquation.OffsetY; // y = mx + b /// - /// Checks if two line equations are approximately equal. + /// Checks if two are approximately equal. /// - /// The first line equation to compare. - /// The second line equation to compare. + /// The first to compare. + /// The second to compare. /// The epsilon range. - /// True if the line equations are approximately equal; otherwise, false. + /// True if the are approximately equal; otherwise, false. public static bool ApproximatelyEquals(Line2DEquation left, Line2DEquation right, float epsilon = float.Epsilon) => left.Slope.ApproximatelyEquals(right.Slope, epsilon) && left.OffsetY.ApproximatelyEquals(right.OffsetY, epsilon); @@ -60,7 +60,7 @@ public readonly struct Line2DEquation(float slope, float offsetY) } /// -/// Provides extension methods for the LineEquation struct. +/// Provides extension methods for the struct. /// public static class Line2DEquationExtensions {