code: def to_(self, off_pts):
          
          off_pts = np.asarray(off_pts, dtype=np.float)
          has_z = (off_pts.shape[-1] > 2)
  
          # scale according to current settings
          scale_pt = [self.viewer._org_scale_x, self.viewer._org_scale_y]
          if has_z:
              scale_pt.append(self.viewer._org_scale_z)
  
          off_pts = np.multiply(off_pts, scale_pt)
          return off_pts
docs: Reverse of :meth:`from_`.