Skip to content

Commit

Permalink
float[] -> Slan<float>
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 16, 2024
1 parent 790a570 commit 2a26dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotRecast.Core/Numerics/RcVec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static float Dist2DSqr(RcVec3f v1, RcVec3f v2)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Dist2DSqr(RcVec3f p, float[] verts, int i)
public static float Dist2DSqr(RcVec3f p, Span<float> verts, int i)
{
float dx = verts[i] - p.X;
float dz = verts[i + 2] - p.Z;
Expand Down

0 comments on commit 2a26dd4

Please sign in to comment.