class_docstr: Class representing a point on the 2D plane.
class_docstr_tok: ["Class","representing","a","point","on","the","2D","plane","."]
docstr: Returns the point that is at a given distance from this point
  towards another one.
docstr_tok: ["Returns","the","point","that","is","at","a","given","distance","from","this","point","towards","another","one","."]
code: def towards(self, other, distance=0):
      """Returns the point that is at a given distance from this point
      towards another one."""
      if not distance:
          return self
  
      angle = atan2(other.y - self.y, other.x - self.x)
      return self.__class__(
          self.x + distance * cos(angle), self.y + distance * sin(angle)
      )
  
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 11 for calling the Point obj's underlying member method code with example usage: obj.towards(other, distance) and returns: self, self