Skip to content

Commit

Permalink
Fix GetBoundingRange/Box overload with count parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jun 18, 2024
1 parent ac6712c commit 071f7a5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
72 changes: 36 additions & 36 deletions src/Aardvark.Base/Math/RangesBoxes/Box_auto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ public static Range1b GetBoundingRange(this int[] indexArray, byte[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1b GetBoundingRange(this int[] indexArray, int count, byte[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -987,7 +987,7 @@ public static Range1b GetBoundingRange(this long[] indexArray, byte[] pointArray
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1b GetBoundingRange(this long[] indexArray, long count, byte[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -1935,7 +1935,7 @@ public static Range1sb GetBoundingRange(this int[] indexArray, sbyte[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1sb GetBoundingRange(this int[] indexArray, int count, sbyte[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -1979,7 +1979,7 @@ public static Range1sb GetBoundingRange(this long[] indexArray, sbyte[] pointArr
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1sb GetBoundingRange(this long[] indexArray, long count, sbyte[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -2927,7 +2927,7 @@ public static Range1s GetBoundingRange(this int[] indexArray, short[] pointArray
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1s GetBoundingRange(this int[] indexArray, int count, short[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -2971,7 +2971,7 @@ public static Range1s GetBoundingRange(this long[] indexArray, short[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1s GetBoundingRange(this long[] indexArray, long count, short[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -3919,7 +3919,7 @@ public static Range1us GetBoundingRange(this int[] indexArray, ushort[] pointArr
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1us GetBoundingRange(this int[] indexArray, int count, ushort[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -3963,7 +3963,7 @@ public static Range1us GetBoundingRange(this long[] indexArray, ushort[] pointAr
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1us GetBoundingRange(this long[] indexArray, long count, ushort[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -4911,7 +4911,7 @@ public static Range1i GetBoundingRange(this int[] indexArray, int[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1i GetBoundingRange(this int[] indexArray, int count, int[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -4955,7 +4955,7 @@ public static Range1i GetBoundingRange(this long[] indexArray, int[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1i GetBoundingRange(this long[] indexArray, long count, int[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -5903,7 +5903,7 @@ public static Range1ui GetBoundingRange(this int[] indexArray, uint[] pointArray
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1ui GetBoundingRange(this int[] indexArray, int count, uint[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -5947,7 +5947,7 @@ public static Range1ui GetBoundingRange(this long[] indexArray, uint[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1ui GetBoundingRange(this long[] indexArray, long count, uint[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -6895,7 +6895,7 @@ public static Range1l GetBoundingRange(this int[] indexArray, long[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1l GetBoundingRange(this int[] indexArray, int count, long[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -6939,7 +6939,7 @@ public static Range1l GetBoundingRange(this long[] indexArray, long[] pointArray
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1l GetBoundingRange(this long[] indexArray, long count, long[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -7887,7 +7887,7 @@ public static Range1ul GetBoundingRange(this int[] indexArray, ulong[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1ul GetBoundingRange(this int[] indexArray, int count, ulong[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -7931,7 +7931,7 @@ public static Range1ul GetBoundingRange(this long[] indexArray, ulong[] pointArr
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1ul GetBoundingRange(this long[] indexArray, long count, ulong[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -8898,7 +8898,7 @@ public static Range1f GetBoundingRange(this int[] indexArray, float[] pointArray
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1f GetBoundingRange(this int[] indexArray, int count, float[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -8942,7 +8942,7 @@ public static Range1f GetBoundingRange(this long[] indexArray, float[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1f GetBoundingRange(this long[] indexArray, long count, float[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -9909,7 +9909,7 @@ public static Range1d GetBoundingRange(this int[] indexArray, double[] pointArra
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1d GetBoundingRange(this int[] indexArray, int count, double[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.Length, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -9953,7 +9953,7 @@ public static Range1d GetBoundingRange(this long[] indexArray, double[] pointArr
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Range1d GetBoundingRange(this long[] indexArray, long count, double[] pointArray)
{
return indexArray.GetBoundingRange(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingRange(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -11488,7 +11488,7 @@ public static Box2i GetBoundingBox(this int[] indexArray, V2i[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2i GetBoundingBox(this int[] indexArray, int count, V2i[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -11532,7 +11532,7 @@ public static Box2i GetBoundingBox(this long[] indexArray, V2i[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2i GetBoundingBox(this long[] indexArray, long count, V2i[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -13019,7 +13019,7 @@ public static Box2l GetBoundingBox(this int[] indexArray, V2l[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2l GetBoundingBox(this int[] indexArray, int count, V2l[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -13063,7 +13063,7 @@ public static Box2l GetBoundingBox(this long[] indexArray, V2l[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2l GetBoundingBox(this long[] indexArray, long count, V2l[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -14656,7 +14656,7 @@ public static Box2f GetBoundingBox(this int[] indexArray, V2f[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2f GetBoundingBox(this int[] indexArray, int count, V2f[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -14700,7 +14700,7 @@ public static Box2f GetBoundingBox(this long[] indexArray, V2f[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2f GetBoundingBox(this long[] indexArray, long count, V2f[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -16293,7 +16293,7 @@ public static Box2d GetBoundingBox(this int[] indexArray, V2d[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2d GetBoundingBox(this int[] indexArray, int count, V2d[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -16337,7 +16337,7 @@ public static Box2d GetBoundingBox(this long[] indexArray, V2d[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box2d GetBoundingBox(this long[] indexArray, long count, V2d[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -17801,7 +17801,7 @@ public static Box3i GetBoundingBox(this int[] indexArray, V3i[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3i GetBoundingBox(this int[] indexArray, int count, V3i[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -17845,7 +17845,7 @@ public static Box3i GetBoundingBox(this long[] indexArray, V3i[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3i GetBoundingBox(this long[] indexArray, long count, V3i[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -19689,7 +19689,7 @@ public static Box3l GetBoundingBox(this int[] indexArray, V3l[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3l GetBoundingBox(this int[] indexArray, int count, V3l[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -19733,7 +19733,7 @@ public static Box3l GetBoundingBox(this long[] indexArray, V3l[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3l GetBoundingBox(this long[] indexArray, long count, V3l[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -21688,7 +21688,7 @@ public static Box3f GetBoundingBox(this int[] indexArray, V3f[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3f GetBoundingBox(this int[] indexArray, int count, V3f[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -21732,7 +21732,7 @@ public static Box3f GetBoundingBox(this long[] indexArray, V3f[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3f GetBoundingBox(this long[] indexArray, long count, V3f[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -23687,7 +23687,7 @@ public static Box3d GetBoundingBox(this int[] indexArray, V3d[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3d GetBoundingBox(this int[] indexArray, int count, V3d[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.Length, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down Expand Up @@ -23731,7 +23731,7 @@ public static Box3d GetBoundingBox(this long[] indexArray, V3d[] pointArray)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Box3d GetBoundingBox(this long[] indexArray, long count, V3d[] pointArray)
{
return indexArray.GetBoundingBox(0, indexArray.LongLength, pointArray);
return indexArray.GetBoundingBox(0, count, pointArray);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Aardvark.Base/Math/RangesBoxes/Box_template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,7 @@ public static __type__ GetBounding__bnamecaps__(this __itype__[] indexArray, __l
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static __type__ GetBounding__bnamecaps__(this __itype__[] indexArray, __itype__ count, __ltype__[] pointArray)
{
return indexArray.GetBounding__bnamecaps__(0, indexArray.__getlength__, pointArray);
return indexArray.GetBounding__bnamecaps__(0, count, pointArray);
}

/// <summary>
Expand Down

0 comments on commit 071f7a5

Please sign in to comment.