Calculation of the properties of cuboids
The class Cuboid calculates properties of a cuboid.
The following properties can be queried as a result or passed as an argument.
Symbols
Description
a Length b Width h Height d Diagonal of the base (a x b) P Perimeter of the base (a x b) e Space diagonal A Area of the base (a x b) S Surface V Volume
Object = Cuboid ("arg names", arguments)
Value = Cuboid ("get -> arg names", arguments)
Calculation of the properties of the side lengths \(a\) and \(b\) and the height \(h\)
The initialized object \(a\) displays the volume \(V\).
From the side lengths \(a\) and \(b\) and the height \(h\) the volume \(V\) is calculated.