code: def transform_coords(self, coords):
          # type: (List[List[float]]) -> List[List[float]]
          
          new_coords = []
          for x in coords:
              x = np.array(x)
              Q = np.linalg.inv(self.P)
              x_ = np.matmul(Q, (x - self.p))
              new_coords.append(x_.tolist())
          return new_coords
docs: Takes a list of co-ordinates and transforms them.
          :param coords: List of coords
          :return: