class_docstr: Class representing a point on the 2D plane.
class_docstr_tok: ["Class","representing","a","point","on","the","2D","plane","."]
docstr: Linearly interpolates between the coordinates of this point and
  another one.
  
  @param  other:  the other point
  @param  ratio:  the interpolation ratio between 0 and 1. Zero will
    return this point, 1 will return the other point.
docstr_tok: ["Linearly","interpolates","between","the","coordinates","of","this","point","and","another","one",".","@","param","other",":","the","other","point","@","param","ratio",":","the","interpolation","ratio","between","0","and","1",".","Zero","will","return","this","point",",","1","will","return","the","other","point","."]
code: def interpolate(self, other, ratio=0.5):
      """Linearly interpolates between the coordinates of this point and
      another one.
  
      @param  other:  the other point
      @param  ratio:  the interpolation ratio between 0 and 1. Zero will
        return this point, 1 will return the other point.
      """
      ratio = float(ratio)
      return self.__class__(
          x=self.x * (1.0 - ratio) + other.x * ratio,
          y=self.y * (1.0 - ratio) + other.y * ratio,
      )
  
imports: from collections import defaultdict
  from math import atan2, cos, hypot, sin
  from typing import NamedTuple
  from igraph.utils import consecutive_pairs
label_desc: Use image node_id 7 for calling the Point obj's underlying member method code with example usage: obj.interpolate(other, ratio) and returns: self