transformation/orthogonalprojection: Migrate code