Skip to content

Commit

Permalink
v1.7.29 library updates
Browse files Browse the repository at this point in the history
  • Loading branch information
smabuk committed Dec 18, 2024
1 parent 69ae404 commit 5a9571f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Smab.Helpers/GridHelpers/Points.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Smab.Helpers;

public static partial class Directions {
public static Point Move( this Point point, Direction direction, int distance = 1)
=> point + (direction.Delta() * distance);
=> point with { X = point.X + (direction.Delta().dX * distance), Y = point.Y + (direction.Delta().dY * distance)};

public static Point MoveEast( this Point point, int distance = 1) => point with { X = point.X + distance };
public static Point MoveWest (this Point point, int distance = 1) => point with { X = point.X - distance };
Expand All @@ -21,7 +21,7 @@ public static Point Move( this Point point, Direction direction, int distance =
public static IEnumerable<Point> AllAdjacent(this Point point) => ALL_DIRECTIONS.Select(d => point + d);

public static Point Translate(this Point point, Direction direction, int distance = 1)
=> point + (direction.Delta() * distance);
=> point with { X = point.X + (direction.Delta().dX * distance), Y = point.Y + (direction.Delta().dY * distance) };

public static Point Transpose(this Point point) => new(point.Y, point.X);

Expand Down
2 changes: 1 addition & 1 deletion src/Smab.Helpers/Smab.Helpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>
<PropertyGroup>
<PackageReleaseNotes>.NET 9.0</PackageReleaseNotes>
<VersionPrefix>1.7.28</VersionPrefix>
<VersionPrefix>1.7.29</VersionPrefix>
<Preview></Preview>
<VersionSuffix Condition="'$(Preview)' != '' And '$(BUILD_BUILDNUMBER)' == ''">$(Preview).$([System.DateTime]::get_Now().get_Year())$([System.DateTime]::get_Now().get_Month().ToString("D2"))$([System.DateTime]::get_Now().get_Day().ToString("D2"))-$([System.DateTime]::get_Now().get_Hour().ToString("D2"))$([System.DateTime]::get_Now().get_Minute().ToString("D2"))</VersionSuffix>
<VersionSuffix Condition="'$(Preview)' != '' And '$(BUILD_BUILDNUMBER)' != ''">$(Preview).$(BUILD_BUILDNUMBER)</VersionSuffix>
Expand Down
4 changes: 2 additions & 2 deletions tests/Smab.Helpers.Tests/Smab.Helpers.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 5a9571f

Please sign in to comment.