using System.Collections.Generic;
using OpenNest.Geometry;
namespace OpenNest.Engine.BestFit
{
///
/// A distance computer that can prepare one pair of boundaries once for several batches
/// of slides, as the pair search does: the grid of first slides, then the settling slides
/// of the same two boundaries.
///
public interface IPreparedDistanceComputer : IDistanceComputer
{
///
/// Prepares the boundaries. The lists must not change while the result is in use.
///
IPreparedDistances Prepare(List stationaryEntities, List movingEntities);
}
/// One pair of boundaries prepared by an .
public interface IPreparedDistances
{
///
/// What
/// returns for the prepared boundaries and these offsets. One batch at a time.
///
double[] ComputeDistances(SlideOffset[] offsets);
}
}