modified gravity class to translate vectors