Auto-formatter reordering of using statements across the solution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
622 B
C#
32 lines
622 B
C#
using OpenNest.Geometry;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace OpenNest.CirclePacking
|
|
{
|
|
internal class Bin : Box
|
|
{
|
|
public Bin()
|
|
{
|
|
Items = new List<Item>();
|
|
}
|
|
|
|
public List<Item> Items { get; set; }
|
|
|
|
public double Density()
|
|
{
|
|
return Items.Sum(i => i.Area()) / Area();
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
return new Bin
|
|
{
|
|
Location = this.Location,
|
|
Size = this.Size,
|
|
Items = new List<Item>(Items)
|
|
};
|
|
}
|
|
}
|
|
}
|