(subpath)
return det > 0
Returns whether the given subpath is clockwise-oriented.
Returns whether the given subpath is clockwise-oriented.
Returns whether the given subpath is clockwise - oriented .
def _is_clockwise(subpath):
  """Returns whether the given subpath is clockwise-oriented."""
  pts = [cmd[-2:] for cmd in subpath]
  det = 0
  for i in range(len(pts)-1):
    det += np.linalg.det(pts[i:i+2])
  return det > 0
def _is_clockwise ( subpath ) : pts = [ cmd [ - 2 : ] for cmd in subpath ] det = 0 for i in range ( len ( pts ) - 1 ) : det += np . linalg . det ( pts [ i : i + 2 ] ) return det > 0