Generalized Ray & Transform over dimensions