We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a06272 commit 6c6103aCopy full SHA for 6c6103a
src/Synercoding.Primitives/Size.cs
@@ -58,6 +58,12 @@ public static Size Empty
58
/// </summary>
59
public Value Height { get; }
60
61
+ /// <summary>
62
+ /// The rotated version of this <see cref="Size"/>; Same as calling var newSize = new Size(oldSize.Height, oldSize.Width);
63
+ /// </summary>
64
+ public Size Rotated
65
+ => new Size(Height, Width);
66
+
67
/// <summary>
68
/// Get the <see cref="Primitives.Orientation"/> of the size
69
0 commit comments