IB AI · 14B Voronoi Diagrams
The Voronoi edge between two sites is their perpendicular bisector. It passes through the midpoint and is perpendicular to the segment that joins the sites.
Midpoint
Average the coordinates.
Perpendicular
The boundary slope is the negative reciprocal of the segment slope.
Horizontal
A horizontal segment has a vertical boundary.
Vertical
A vertical segment has a horizontal boundary.
A diagonal segment.
The boundary is the perpendicular bisector.
midpoint = (3, 3)
slope of the segment = 4 − 25 − 1 = 12
perpendicular slope = −2
y − 3 = −2(x − 3)
y = −2x + 9
Answer: y = −2x + 9
The boundary is the perpendicular bisector.
midpoint = (2, 1)
slope of the segment = 2 − 04 − 0 = 12
perpendicular slope = −2
y − 1 = −2(x − 2)
y = −2x + 5
Answer: y = −2x + 5
The boundary is the perpendicular bisector.
midpoint = (3, 2)
slope of the segment = 3 − 15 − 1 = 12
perpendicular slope = −2
y − 2 = −2(x − 3)
y = −2x + 8
Answer: y = −2x + 8
The boundary is the perpendicular bisector.
midpoint = (3, 3)
slope of the segment = 4 − 26 − 0 = 13
perpendicular slope = −3
y − 3 = −3(x − 3)
y = −3x + 12
Answer: y = −3x + 12
The boundary is the perpendicular bisector.
midpoint = (4, 3)
slope of the segment = 5 − 16 − 2 = 1
perpendicular slope = −1
y − 3 = −1(x − 4)
y = −x + 7
Answer: y = −x + 7
The boundary is the perpendicular bisector.
midpoint = (2, 2)
slope of the segment = 4 − 03 − 1 = 2
perpendicular slope = −12
y − 2 = −12(x − 2)
y = −12x + 3
Answer: y = −12x + 3
A negative reciprocal that is a fraction.
The boundary is the perpendicular bisector.
midpoint = (2, 1)
slope of the segment = 2 − 04 − 0 = 12
perpendicular slope = −2
y − 1 = −2(x − 2)
y = −2x + 5
Answer: y = −2x + 5
The boundary is the perpendicular bisector.
midpoint = (3, 2)
slope of the segment = 1 − 35 − 1 = −12
perpendicular slope = 2
y − 2 = 2(x − 3)
y = 2x − 4
Answer: y = 2x − 4
The boundary is the perpendicular bisector.
midpoint = (1, 3)
slope of the segment = 5 − 12 − 0 = 2
perpendicular slope = −12
y − 3 = −12(x − 1)
y = −12x + 72
Answer: y = −12x + 72
The boundary is the perpendicular bisector.
midpoint = (4, 1)
slope of the segment = 2 − 06 − 2 = 12
perpendicular slope = −2
y − 1 = −2(x − 4)
y = −2x + 9
Answer: y = −2x + 9
The boundary is the perpendicular bisector.
midpoint = (0, 2)
slope of the segment = 3 − 12 + 2 = 12
perpendicular slope = −2
y − 2 = −2(x − 0)
y = −2x + 2
Answer: y = −2x + 2
The boundary is the perpendicular bisector.
midpoint = (3, 52)
slope of the segment = 1 − 46 − 0 = −12
perpendicular slope = 2
y − 52 = 2(x − 3)
y = 2x − 72
Answer: y = 2x − 72
A horizontal or vertical segment.
The boundary is the perpendicular bisector.
midpoint = (4, 2)
The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.
x = 4
Answer: x = 4
The boundary is the perpendicular bisector.
midpoint = (0, 4)
The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.
y = 4
Answer: y = 4
The boundary is the perpendicular bisector.
midpoint = (3, 5)
The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.
y = 5
Answer: y = 5
The boundary is the perpendicular bisector.
midpoint = (2, 4)
The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.
x = 2
Answer: x = 2
The boundary is the perpendicular bisector.
midpoint = (4, 2)
The sites have the same x-coordinate, so the segment is vertical and the boundary is horizontal.
y = 2
Answer: y = 2
The boundary is the perpendicular bisector.
midpoint = (5, 3)
The sites have the same y-coordinate, so the segment is horizontal and the boundary is vertical.
x = 5
Answer: x = 5
Want to go over a Voronoi diagram together?
Book a Session with Amy