getEdgeLocations
Calculates and returns the edge locations of a cuboid defined by two diagonal corners.
The method identifies all the points along the edges of the cuboid between the two given locations. Only the unique points are included in the resulting sequence.
Both input locations must be in the same world, otherwise an exception is thrown.
Return
A sequence of unique locations representing the edges of the cuboid.
Parameters
pos1
The first corner location of the cuboid.
pos2
The second corner location of the cuboid.
Throws
if the locations are in different worlds, or if the first location has no world.