Removed RcVecUtils.Dot2D(this RcVec3f @this, Span<float> v, int vi)

This commit is contained in:
ikpil 2024-06-08 20:56:55 +09:00
parent fd03f0f12f
commit 320c7b4c65
3 changed files with 4 additions and 10 deletions

View File

@ -16,13 +16,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Changed to reuse samples and edges list in BuildPolyDetail()
### Removed
- Removed RcMeshDetails.VdistSq2(float[], float[])
- Removed RcVecUtils.Dot()
- Removed RcVecUtils.Scale()
- Removed RcVecUtils.Subtract(RcVec3f i, float[] verts, int j)
- Removed RcVecUtils.Subtract(float[] verts, int i, int j)
- Removed RcMeshDetails.VdistSq2(float[], float[])
- Removed RcVecUtils.Min(), RcVecUtils.Max()
- Removed RcVecUtils.Create(float[] values)
- Removed RcVecUtils.Dot2D(this RcVec3f @this, Span<float> v, int vi)
### Special Thanks
- [@Doprez](https://github.com/Doprez)

View File

@ -50,13 +50,6 @@ namespace DotRecast.Core.Numerics
@this.Z * v.Z;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Dot2D(this RcVec3f @this, Span<float> v, int vi)
{
return @this.X * v[vi] +
@this.Z * v[vi + 2];
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Cross(float[] dest, float[] v1, float[] v2)
{

View File

@ -249,10 +249,10 @@ namespace DotRecast.Detour
public static RcVec2f ProjectPoly(RcVec3f axis, Span<float> poly, int npoly)
{
float rmin, rmax;
rmin = rmax = axis.Dot2D(poly, 0);
rmin = rmax = axis.Dot2D(new RcVec3f(poly));
for (int i = 1; i < npoly; ++i)
{
float d = axis.Dot2D(poly, i * 3);
float d = axis.Dot2D(RcVecUtils.Create(poly, i * 3));
rmin = Math.Min(rmin, d);
rmax = Math.Max(rmax, d);
}