diff --git a/src/DotRecast.Recast/RecastVectors.cs b/src/DotRecast.Recast/RecastVectors.cs index a8e793c..a6fd393 100644 --- a/src/DotRecast.Recast/RecastVectors.cs +++ b/src/DotRecast.Recast/RecastVectors.cs @@ -25,13 +25,6 @@ namespace DotRecast.Recast { public static class RecastVectors { - public static void min(float[] a, float[] b, int i) - { - a[0] = Math.Min(a[0], b[i + 0]); - a[1] = Math.Min(a[1], b[i + 1]); - a[2] = Math.Min(a[2], b[i + 2]); - } - public static void min(ref Vector3f a, float[] b, int i) { a[0] = Math.Min(a[0], b[i + 0]); @@ -45,15 +38,6 @@ namespace DotRecast.Recast a[1] = Math.Min(a[1], b[i + 1]); a[2] = Math.Min(a[2], b[i + 2]); } - - - - public static void max(float[] a, float[] b, int i) - { - a[0] = Math.Max(a[0], b[i + 0]); - a[1] = Math.Max(a[1], b[i + 1]); - a[2] = Math.Max(a[2], b[i + 2]); - } public static void max(ref Vector3f a, float[] b, int i) { @@ -69,13 +53,6 @@ namespace DotRecast.Recast a[2] = Math.Max(a[2], b[i + 2]); } - - - public static void copy(float[] @out, float[] @in, int i) - { - copy(@out, 0, @in, i); - } - public static void copy(ref Vector3f @out, float[] @in, int i) { copy(ref @out, 0, @in, i); @@ -87,17 +64,6 @@ namespace DotRecast.Recast } - - public static void copy(float[] @out, float[] @in) - { - copy(@out, 0, @in, 0); - } - - public static void copy(ref Vector3f @out, float[] @in) - { - copy(ref @out, 0, @in, 0); - } - public static void copy(ref Vector3f @out, Vector3f @in) { @out = @in; @@ -134,19 +100,6 @@ namespace DotRecast.Recast @out[n + 2] = @in[m + 2]; } - public static void add(float[] e0, float[] a, float[] verts, int i) - { - e0[0] = a[0] + verts[i]; - e0[1] = a[1] + verts[i + 1]; - e0[2] = a[2] + verts[i + 2]; - } - - public static void add(ref Vector3f e0, float[] a, float[] verts, int i) - { - e0[0] = a[0] + verts[i]; - e0[1] = a[1] + verts[i + 1]; - e0[2] = a[2] + verts[i + 2]; - } public static void add(ref Vector3f e0, Vector3f a, float[] verts, int i) { @@ -155,12 +108,6 @@ namespace DotRecast.Recast e0[2] = a[2] + verts[i + 2]; } - public static void sub(float[] e0, float[] verts, int i, int j) - { - e0[0] = verts[i] - verts[j]; - e0[1] = verts[i + 1] - verts[j + 1]; - e0[2] = verts[i + 2] - verts[j + 2]; - } public static void sub(ref Vector3f e0, float[] verts, int i, int j) { @@ -169,13 +116,6 @@ namespace DotRecast.Recast e0[2] = verts[i + 2] - verts[j + 2]; } - - public static void sub(float[] e0, float[] i, float[] verts, int j) - { - e0[0] = i[0] - verts[j]; - e0[1] = i[1] - verts[j + 1]; - e0[2] = i[2] - verts[j + 2]; - } public static void sub(ref Vector3f e0, Vector3f i, float[] verts, int j) { @@ -199,13 +139,6 @@ namespace DotRecast.Recast dest[2] = v1[0] * v2[1] - v1[1] * v2[0]; } - public static void cross(ref Vector3f dest, float[] v1, float[] v2) - { - dest[0] = v1[1] * v2[2] - v1[2] * v2[1]; - dest[1] = v1[2] * v2[0] - v1[0] * v2[2]; - dest[2] = v1[0] * v2[1] - v1[1] * v2[0]; - } - public static void cross(ref Vector3f dest, Vector3f v1, Vector3f v2) { dest[0] = v1[1] * v2[2] - v1[2] * v2[1];