def __init__(self, control_points):
_o = len(control_points)<EOL>self._orders = np.arange(_o)<EOL>_coeff = BezierSegment._binom_coeff[_o - <NUM_LIT:1>]<EOL>_control_points = np.asarray(control_points)<EOL>xx = _control_points[:,<NUM_LIT:0>]<EOL>yy = _control_points[:,<NUM_LIT:1>]<EOL>self._px = xx * _coeff<EOL>self._py = yy * _coeff<EOL>
*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.