split_half (method)

split_half(self, is_begin=True)[source]

Cut the line in half (modify the object)

Parameters:
  • self (Segment) – An Segment object
  • is_begin (bool) – True to keep the part begin=>middle, False for the part middle=>end