Box::Calc::Row - The smallest organizational unit in a box.
version 1.0206
my $row = Box::Calc::Row->new(max_x => 6);
Constructor.
The maximimum width of the row. This is equivalent to the x or longest dimension of the containing box.
x
Returns the weight of the items in this row.
Returns how full the row is in the x dimension.
Returns how full the row is in the y dimension.
y
Returns how full the row is in the z dimension.
z
Returns the maximum x dimension of this row. See new for details.
new
Returns an array reference of items contained in this row.
Returns the number of items contained in this row.
Calculates the weight of all the items in this row, and returns that value.
Places an item into the row, and updates all the relevant statistics about the row.
Returns 1 on success or 0 on failure.
A Box::Calc::Item instance.
Updates a scalar reference with the weight of the row and a hash reference of all the items in this row.
Returns a hash reference of items contained in this row via the describe method, and other important info about the row. Example:
describe
{ items => [ ... ], x => 3, y => 2, z => 2 }
Returns the real used volume for this row.
Returns the exact volume needed for this row.
To install Box::Calc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Box::Calc
CPAN shell
perl -MCPAN -e shell install Box::Calc
For more information on module installation, please visit the detailed CPAN module installation guide.