Skip to content

Commit

Permalink
Bump version 1.2.1, RectangleF add FromLTRB and Matrix5x4 rename acci…
Browse files Browse the repository at this point in the history
…dentally RawMatrix5x4 name.
  • Loading branch information
amerkoleci committed Mar 17, 2020
1 parent 463a6dc commit 988a91f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Vortice.Mathematics/Matrix5x4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Vortice.Mathematics
/// Describes a 5-by-4 floating point matrix.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct RawMatrix5x4
public struct Matrix5x4
{
/// <summary>
/// Value at row 1 column 1.
Expand Down
6 changes: 6 additions & 0 deletions src/Vortice.Mathematics/RectangleF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ public static RectangleF Transform(RectangleF rectangle, Matrix3x2 matrix)
/// <returns>The result of the conversion.</returns>
public static implicit operator System.Drawing.RectangleF(RectangleF value) => new System.Drawing.RectangleF(value.X, value.Y, value.Width, value.Height);

/// <summary>
/// Creates a new <see cref='Rectangle'/> with the specified left, top, right and bottom coordinate.
/// </summary>
public static RectangleF FromLTRB(float left, float top, float right, float bottom) =>
new RectangleF(left, top, right - left, bottom - top);

/// <summary>
/// Compares two <see cref="RectangleF"/> objects for equality.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.2.0",
"version": "1.2.1",
"publicReleaseRefSpec": [
"^refs/tags/v\\d+\\.\\d+" // we also release tags starting with vN.N
],
Expand Down

0 comments on commit 988a91f

Please sign in to comment.