You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
def get_centroid(points): |
|
x_list = [point[0] for point in points] |
|
y_list = [point[1] for point in points] |
|
x = sum(x_list) / len(x_list) |
|
y = sum(y_list) / len(y_list) |
|
return (x, y) |