original_docstring: Create arrow with x1, y1 as the tip; headWith, headLengh as the length and width of the arrowhead; and bodyLength, bodyWidth as the length and width of the arrow body, as well as direction = val (0 by default).
docstring: Create arrow with x1, y1 as the tip; headWith, headLengh as the length and width of the arrowhead; and bodyLength, bodyWidth as the length and width of the arrow body, as well as direction = val (0 by default).
docstring_tokens: Create arrow with x1 y1 as the tip ; headWith headLengh as the length and width of the arrowhead ; and bodyLength bodyWidth as the length and width of the arrow body as well as direction = val ( 0 by default ) .
code: def create_arrow(
          self,
          x1: Real,
          y1: Real,
          headLength: Real,
          headWidth: Real,
          bodyLength: Real,
          bodyWidth: Real,
          **kwargs
      ) -> int:
          """Create arrow with x1, y1 as the tip; headWith, headLengh as the length and width of the arrowhead; and bodyLength, bodyWidth as the length and width of the arrow body, as well as direction = val (0 by default)."""
  
          points = [
              x1,
              y1,
              x1 - headWidth // 2,
              y1 + headLength,
              x1 - bodyWidth // 2,
              y1 + headLength,
              x1 - bodyWidth // 2,
              y1 + bodyLength,
              x1 + bodyWidth // 2,
              y1 + bodyLength,
              x1 + bodyWidth // 2,
              y1 + headLength,
              x1 + headWidth // 2,
              y1 + headLength,
          ]
  
          return self._create("polygon", points, kwargs)
code_tokens: def create_arrow ( self , x1 : Real , y1 : Real , headLength : Real , headWidth : Real , bodyLength : Real , bodyWidth : Real , ** kwargs ) -> int : points = [ x1 , y1 , x1 - headWidth // 2 , y1 + headLength , x1 - bodyWidth // 2 , y1 + headLength , x1 - bodyWidth // 2 , y1 + bodyLength , x1 + bodyWidth // 2 , y1 + bodyLength , x1 + bodyWidth // 2 , y1 + headLength , x1 + headWidth // 2 , y1 + headLength , ] return self . _create ( "polygon" , points , kwargs )
short_docstring: Create arrow with x1, y1 as the tip; headWith, headLengh as the length and width of the arrowhead; and bodyLength, bodyWidth as the length and width of the arrow body, as well as direction = val (0 by default).
short_docstring_tokens: Create arrow with x1 y1 as the tip ; headWith headLengh as the length and width of the arrowhead ; and bodyLength bodyWidth as the length and width of the arrow body as well as direction = val ( 0 by default ) .
comment: """Create arrow with x1, y1 as the tip; headWith, headLengh as the length and width of the arrowhead; and bodyLength, bodyWidth as the length and width of the arrow body, as well as direction = val (0 by default)."""