E
essamce
Guest
hi
public static void RemoveOutOfRangeCircles(ref List<Simple2DCircle> list, float min, float max)
{
for (int i = 0; i < list.Count; i++)
{
if (list.Radius.IsNotBetween(min, max))
{
list.RemoveAt(i);
i--;
}
}
}
public static void RemoveOutOfRangeLines(ref List<Simple2DLine> list, float min, float max)
{
for (int i = 0; i < list.Count; i++)
{
if (list.Length.IsNotBetween(min, max))
{
list.RemoveAt(i);
i--;
}
}
}
is there a way to make a generic method instead of those two mehtods.
Continue reading...
public static void RemoveOutOfRangeCircles(ref List<Simple2DCircle> list, float min, float max)
{
for (int i = 0; i < list.Count; i++)
{
if (list.Radius.IsNotBetween(min, max))
{
list.RemoveAt(i);
i--;
}
}
}
public static void RemoveOutOfRangeLines(ref List<Simple2DLine> list, float min, float max)
{
for (int i = 0; i < list.Count; i++)
{
if (list.Length.IsNotBetween(min, max))
{
list.RemoveAt(i);
i--;
}
}
}
is there a way to make a generic method instead of those two mehtods.
Continue reading...