getRelativePos

fun getRelativePos(blockPos: BlockPos, roomPair: Pair<Room, Int>): BlockPos

Transforms the given blockPos in absolute world coordinates to the corresponding room relative position for the given room with given rotation.

See also