Skip to content

Commit

Permalink
Added ToString to Scale
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthAffe committed Oct 31, 2023
1 parent d454f94 commit 883d6cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RGB.NET.Core/Positioning/Scale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public Scale(float horizontal, float vertical)

#region Methods

/// <summary>
/// Converts the <see cref="Horizontal"/> and <see cref="Vertical"/> value of this <see cref="Scale"/> to a human-readable string.
/// </summary>
/// <returns>A string that contains the <see cref="Horizontal"/> and <see cref="Vertical"/> value of this <see cref="Scale"/>. For example "[Horizontal: 1, Vertical: 0.5]".</returns>
public override string ToString() => $"[Horizontal: {Horizontal}, Vertical: {Vertical}]\"";

/// <summary>
/// Tests whether the specified <see cref="Scale"/> is equivalent to this <see cref="Scale" />.
/// </summary>
Expand Down

0 comments on commit 883d6cb

Please sign in to comment.