Interactive demos — hover & drag
collision()
drag either dot
lerp()
linear interpolation
nearest()
move mouse over canvas
hover to find nearest point
rotate()
polygon rotating around center
positionInCircle()
points on a circle
randomPoints()
+ area()
middle()
drag either dot
farthest()
move mouse over canvas
hover to find farthest point
pentagon()
rotating shape
center()
centroid of point cloud
cross()
drag line endpoints
perimeter()
drag vertices