RangeIteratorWithFactor

fun <T, POS : VectorComparable<POS>> RangeIteratorWithFactor(start: T, end: T, factor: (POS) -> T, posFactor: (T) -> POS)