code: def equilateral(cls, origin=None, side=1):
          '''
          :origin: optional Point
          :side: optional float describing triangle side length
          :return: Triangle initialized with points comprising a
                   equilateral triangle.
  
          XXX equilateral triangle definition
  
          '''
          o = Point(origin)
  
          base = o.x + side
          h = 0.5 * Sqrt_3 * side + o.y
          
          return cls(o, [base, o.y], [base / 2, h]f equilateral(cls, origin=None, side=1):
          '''
          :origin: optional Point
          :side: optional float describing triangle side length
          :return: Triangle initialized with points comprising a
                   equilateral triangle.
  
          XXX equilateral triangle definition
  
          '''
          o = Point(origin)
  
          base = o.x + side
          h = 0.5 * Sqrt_3 * side + o.y
          
          return cls(o, [base, o.y], [base / 2, h])
docs: :origin: optional Point
          :side: optional float describing triangle side length
          :return: Triangle initialized with points comprising a
                   equilateral triangle.
  
          XXX equilateral triangle definition