#include <cuboid3d.hh>
Inherits mln::internal::classical_window_base< mln::dpoint, mln::win::cuboid3d >.
Public Member Functions | |
cuboid3d (unsigned depth, unsigned height, unsigned width) | |
Constructor. | |
unsigned | volume () const |
Return the volume of the cuboid. | |
unsigned | depth () const |
Accessors. | |
unsigned | height () const |
Return the height of the cuboid. | |
unsigned | width () const |
Return the width of the cuboid. |
A cuboid3d is a 3-D window with cuboid (also known as rectangular prism or rectangular parallelepiped) shape. It is centered and symmetric.
For instance:
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o x o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
is defined with depth = 3, height = 5 and width = 7.
Reference: http://en.wikipedia.org/wiki/Cuboid
mln::win::cuboid3d::cuboid3d | ( | unsigned | depth, | |
unsigned | height, | |||
unsigned | width | |||
) | [inline] |
unsigned mln::win::cuboid3d::depth | ( | ) | const [inline] |
Accessors.
Return the depth of the cuboid.
unsigned mln::win::cuboid3d::height | ( | ) | const [inline] |
Return the height of the cuboid.
unsigned mln::win::cuboid3d::volume | ( | ) | const [inline] |
Return the volume of the cuboid.
unsigned mln::win::cuboid3d::width | ( | ) | const [inline] |
Return the width of the cuboid.