Skip to content

Commit

Permalink
Changed to reuse samples and edges list in BuildPolyDetail()
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Jun 8, 2024
1 parent 759e335 commit face8eb
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 66 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Nothing

### Changed
- Nothing
- Changed to reuse samples and edges list in BuildPolyDetail()

### Removed
- Removed RcVecUtils.Dot()
Expand Down
11 changes: 0 additions & 11 deletions src/DotRecast.Core/Numerics/RcVecUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ public static float Dot2D(this RcVec3f @this, Span<float> v, int vi)
@this.Z * v[vi + 2];
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static RcVec3f Add(RcVec3f a, float[] verts, int i)
{
return new RcVec3f(
a.X + verts[i],
a.Y + verts[i + 1],
a.Z + verts[i + 2]
);
}


[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Cross(float[] dest, float[] v1, float[] v2)
{
Expand Down
8 changes: 8 additions & 0 deletions src/DotRecast.Recast/EdgeValues.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DotRecast.Recast
{
public static class EdgeValues
{
public const int EV_UNDEF = -1;
public const int EV_HULL = -2;
}
}
Loading

0 comments on commit face8eb

Please sign in to comment.