721
edits
Line 61: | Line 61: | ||
p0 = (1,1), p1= (4,2) | p0 = (1,1), p1= (4,2) | ||
p0 + p1 = p2; | p0 + p1 = p2; | ||
(1, | (1,1) + (4,2) = (5,3) | ||
Dividing the point by a number, means to divide both dimensions by the same number: | Dividing the point by a number, means to divide both dimensions by the same number: | ||
centroid = p2 /3 = (5, | centroid = p2 /3 = (5,3) / 2 = (2.5,3) | ||