#NEWLINE# def poly_vectors_around_center( pointlist , points_as_Vec2d = True ) : #NEWLINE# #INDENT# 'Rearranges vectors around the center\n    If points_as_Vec2d, then return points are also Vec2d, else pos\n    \n    :return: pointlist ([Vec2d/pos, ...])\n    ' #NEWLINE# poly_points_center = [ ] #NEWLINE# ( cx , cy ) = calc_center ( pointlist ) #NEWLINE# if points_as_Vec2d : #NEWLINE# #INDENT# for p in pointlist : #NEWLINE# #INDENT# x = ( p [ X ] - cx ) #NEWLINE# y = ( p [ Y ] - cy ) #NEWLINE# poly_points_center . append ( Vec2d ( ( x , y ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for p in pointlist : #NEWLINE# #INDENT# x = ( p [ X ] - cx ) #NEWLINE# y = ( cy - p [ Y ] ) #NEWLINE# poly_points_center . append ( ( x , y ) ) #NEWLINE# #UNINDENT# #UNINDENT# return poly_points_center