Skip to content

Commit

Permalink
removed version tag, changed line constructor param order
Browse files Browse the repository at this point in the history
  • Loading branch information
baetz-daniel committed Nov 13, 2020
1 parent 173f7d0 commit f138685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Exomia.Framework/Exomia.Framework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.4.1</Version>
<Company>exomia</Company>
<Authors>exomia;saika01</Authors>
<Description>a framework for building 2D and 3D games and more inspired by the XNA/Mono framework</Description>
Expand Down
12 changes: 6 additions & 6 deletions src/Exomia.Framework/Mathematics/Line2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ namespace Exomia.Framework.Mathematics
/// Initializes a new instance of the <see cref="Line2" /> struct.
/// </summary>
/// <param name="x1"> The first x value. </param>
/// <param name="x2"> The second x value. </param>
/// <param name="y1"> The first y value. </param>
/// <param name="x2"> The second x value. </param>
/// <param name="y2"> The second y value. </param>
public Line2(float x1, float x2, float y1, float y2)
public Line2(float x1, float y1, float x2, float y2)
{
X1 = x1;
X2 = x2;
Y1 = y1;
X2 = x2;
Y2 = y2;
}

Expand All @@ -64,15 +64,15 @@ public Line2(float x1, float x2, float y1, float y2)
/// <param name="a"> The VectorI2 to process. </param>
/// <param name="b"> The VectorI2 to process. </param>
public Line2(VectorI2 a, VectorI2 b)
: this(a.X, b.X, a.Y, b.Y) { }
: this(a.X, a.Y, b.X, b.Y) { }

/// <summary>
/// Initializes a new instance of the <see cref="Line2" /> struct.
/// </summary>
/// <param name="a"> The Vector2 to process. </param>
/// <param name="b"> The Vector2 to process. </param>
public Line2(Vector2 a, Vector2 b)
: this(a.X, b.X, a.Y, b.Y) { }
: this(a.X, a.Y, b.X, b.Y) { }

/// <summary>
/// Determines whether the specified <see cref="Line2" /> is equal to this instance.
Expand All @@ -87,8 +87,8 @@ public bool Equals(in Line2 other)
// ReSharper disable CompareOfFloatsByEqualityOperator
return
X1 == other.X1 &&
X2 == other.X2 &&
Y1 == other.Y1 &&
X2 == other.X2 &&
Y2 == other.Y2;

// ReSharper restore CompareOfFloatsByEqualityOperator
Expand Down

0 comments on commit f138685

Please sign in to comment.