added geom_2vec functions from matlab interface