class_docstr: A simple class of a 2-dimensional bezier segment
class_docstr_tok: ["A","simple","class","of","a","2-dimensional","bezier","segment"]
docstr: *control_points* : location of contol points. It needs have a
   shpae of n * 2, where n is the order of the bezier line. 1<=
   n <= 3 is supported.
docstr_tok: ["*","control_points","*",":","location","of","contol","points",".","It","needs","have","a","shpae","of","n","*","2",",","where","n","is","the","order","of","the","bezier","line",".","1","<","=","n","<","=","3","is","supported","."]
code: def __init__(self, control_points):
      """
      *control_points* : location of contol points. It needs have a
       shpae of n * 2, where n is the order of the bezier line. 1<=
       n <= 3 is supported.
      """
      _o = len(control_points)
      self._orders = np.arange(_o)
  
      _coeff = BezierSegment._binom_coeff[_o - 1]
      xx, yy = np.asarray(control_points).T
      self._px = xx * _coeff
      self._py = yy * _coeff
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from matplotlib.path import Path
  from operator import xor
  import warnings
label_desc: Use image node_id 1 to create a new BezierSegment object from inherited base classes: object with example: obj = BezierSegment(control_points)