3dBinPack 中文文档教程
3D BIN PACK
查明垃圾箱是否可以包含给定的包裹。
用法示例:
var ThreeDimensionBinPack = require('./index.js')();
// Create a bin with dimensions h, w, d
var bin = new ThreeDimensionBinPack.Bin(10, 9, 11);
// Add your packages to the bin
bin.addPackage(2,4,8);
bin.addPackage(2,2,10);
bin.addPackage(2,5,10);
// Determine if the packages will fit into the bin
bin.doesFit(function(packagesFitInsideBin){
console.log('does it fit? '+packagesFitInsideBin);
});
3D BIN PACK
Find out if a bin can contain the given packages.
Example usage:
var ThreeDimensionBinPack = require('./index.js')();
// Create a bin with dimensions h, w, d
var bin = new ThreeDimensionBinPack.Bin(10, 9, 11);
// Add your packages to the bin
bin.addPackage(2,4,8);
bin.addPackage(2,2,10);
bin.addPackage(2,5,10);
// Determine if the packages will fit into the bin
bin.doesFit(function(packagesFitInsideBin){
console.log('does it fit? '+packagesFitInsideBin);
});
更多
你可能也喜欢
- @11tyrocks/eleventy-plugin-objectfit-focalpoint 中文文档教程
- @1337lawyers/design 中文文档教程
- @3fv/logger-proxy 中文文档教程
- @404coder/introduction 中文文档教程
- @4lch4/koa-router-printer 中文文档教程
- @5rabbits/eslint-config 中文文档教程
- @abstraqt-dev/nameof 中文文档教程
- @accessible-web-components/tabs 中文文档教程
- @acoustic-content-sdk/react-api 中文文档教程
- @acrossthecloud/surveyjs-widgets 中文文档教程