calculateSurfaceArea

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

Calculates the surface area of a cuboid region defined by two locations.

The calculation considers the total exposed surface area of the cuboid formed by the two locations, including all six faces.

Return

The total surface area of the cuboid region.

Parameters

pos1

One corner of the cuboid region.

pos2

The opposite corner of the cuboid region.