calculateVolume

fun calculateVolume(pos1: Location, pos2: Location): Int

Calculates the volume of a rectangular cuboid defined by two locations.

Return

The volume of the cuboid in block units.

Parameters

pos1

The first corner of the cuboid.

pos2

The opposite corner of the cuboid.