calculateEdges

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

Calculates the total number of edges for a cuboid defined by two 3D locations.

This method determines the distances between the two positions in each dimension, computes the edges along each dimension, and adds the number of corners.

Return

The total number of edges, including all dimensions and corners.

Parameters

pos1

The first location defining one corner of the cuboid.

pos2

The second location defining the opposite corner of the cuboid.