static public Accumulation.IShipUiModuleAndContext AsAccuInstant( this MemoryStruct.IShipUiModule module, MemoryStruct.IShipUi shipUi) => new ShipUiModuleAndContext() { Module = module, Location = module?.PositionInShipUi(shipUi), };
static public Vektor2DInt?PositionInShipUi( this MemoryStruct.IShipUiModule Module, MemoryStruct.IShipUi ShipUi) => Module?.RegionCenter() - ShipUi?.Center?.RegionCenter();
static public Accumulation.IShipUiModule Accumulation( this Accumulation.IMemoryMeasurement accumulation, MemoryStruct.IShipUiModule module, Parse.IMemoryMeasurement memoryMeasurement) => accumulation?.ShipUiModule?.BestFitFromSet(module.AsAccuInstant(memoryMeasurement?.ShipUi), memoryMeasurement);