getStraightLine

fun getStraightLine(base: Location, axis: Axis, range: IntRange): List<@NotNull Location>