JT Smith > Box-Calc > Box::Calc::Role::Container

Download:
Box-Calc-1.0001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0001   Source  

NAME ^

Box::Calc::Role::Container - Extends the Box::Calc::Role::Dimensional role to include outer dimensions.

VERSION ^

version 1.0001

METHODS ^

This role installs these methods:

outer_x

Returns the outside dimension of largest side of an object.

outer_y

Returns the outside dimension of the middle side of an object.

outer_z

Returns the outside dimension of the shortest side of an object.

outer_volume

Returns the result of multiplying outer_x, outer_y, and outer_z.

outer_dimensions

Returns an array reference containing outer_x, outer_y, and outer_z.

outer_extent

Returns a string of outer_x,outer_y,outer_z. Good for comparing whether two items are dimensionally similar.

syntax highlighting: