remove unuse functions

This commit is contained in:
ikpil 2023-04-05 13:45:37 +09:00
parent 2ad25f0755
commit 1434a61ce9
1 changed files with 0 additions and 67 deletions

View File

@ -25,13 +25,6 @@ namespace DotRecast.Recast
{ {
public static class RecastVectors 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) public static void min(ref Vector3f a, float[] b, int i)
{ {
a[0] = Math.Min(a[0], b[i + 0]); a[0] = Math.Min(a[0], b[i + 0]);
@ -46,15 +39,6 @@ namespace DotRecast.Recast
a[2] = Math.Min(a[2], b[i + 2]); 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) public static void max(ref Vector3f a, float[] b, int i)
{ {
a[0] = Math.Max(a[0], b[i + 0]); a[0] = Math.Max(a[0], b[i + 0]);
@ -69,13 +53,6 @@ namespace DotRecast.Recast
a[2] = Math.Max(a[2], b[i + 2]); 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) public static void copy(ref Vector3f @out, float[] @in, int i)
{ {
copy(ref @out, 0, @in, 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) public static void copy(ref Vector3f @out, Vector3f @in)
{ {
@out = @in; @out = @in;
@ -134,19 +100,6 @@ namespace DotRecast.Recast
@out[n + 2] = @in[m + 2]; @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) 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]; 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) public static void sub(ref Vector3f e0, float[] verts, int i, int j)
{ {
@ -170,13 +117,6 @@ namespace DotRecast.Recast
} }
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) public static void sub(ref Vector3f e0, Vector3f i, float[] verts, int j)
{ {
e0[0] = i[0] - verts[j]; e0[0] = i[0] - verts[j];
@ -199,13 +139,6 @@ namespace DotRecast.Recast
dest[2] = v1[0] * v2[1] - v1[1] * v2[0]; 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) public static void cross(ref Vector3f dest, Vector3f v1, Vector3f v2)
{ {
dest[0] = v1[1] * v2[2] - v1[2] * v2[1]; dest[0] = v1[1] * v2[2] - v1[2] * v2[1];