class_docstr: Class representing a point on the 2D plane.
class_docstr_tok: ["Class","representing","a","point","on","the","2D","plane","."]
docstr: Returns the distance of the point from another one.
  
  Example:
  
      >>> p1 = Point(5, 7)
      >>> p2 = Point(8, 3)
      >>> p1.distance(p2)
      5.0
docstr_tok: ["Returns","the","distance","of","the","point","from","another","one",".","Example",":",">",">",">","p1","=","Point","(","5",",","7",")",">",">",">","p2","=","Point","(","8",",","3",")",">",">",">","p1.distance","(","p2",")","5.0"]
code: def distance(self, other):
      """Returns the distance of the point from another one.
  
      Example:
  
          >>> p1 = Point(5, 7)
          >>> p2 = Point(8, 3)
          >>> p1.distance(p2)
          5.0
      """
      dx, dy = self.x - other.x, self.y - other.y
      return (dx * dx + dy * dy) ** 0.5
  
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 6 for calling the Point obj's underlying member method code with example usage: obj.distance(other) and returns: unknown