Skip to content

Latest commit

 

History

History
101 lines (58 loc) · 3.33 KB

geometric.md

File metadata and controls

101 lines (58 loc) · 3.33 KB

Geometric algorithms

Table of contents


Polygons

Inscribed circle

🔗


Closest pair of points

Problem: in the given set of n ≥ 2 points in a metric space, find a pair of points with the smallest distance between them.

🔗

📖

  • Sec. 33.4: Finding the closest pair of points – T.H.Cormen, C.E.Leiserson, R.L.Rivest, C.Stein. Introduction to algorithms (2009)

Points generation

Random points generation

📖

  • Sec. 1.5: G.Turk. Generating random points in triangles – A.S.Glassner. Graphics gems (1990)

Random points in triangles

Problem: given three points A, B and C that describe a triangle, pick a random point in it with uniform probability.

Random points in polygons

Problem: given N points A1, A2, ..., AN that describe a polygon, pick a random point in it with uniform probability.


Polyline algorithms

Ramer–Douglas–Peucker algorithm

🔗


Drawing algorithms

Bresenham’s-type algorithms

Bresenham’s line algorithm

🔗

📄

Bresenham’s circle algorithm

🔗