Draw a circle with a radius and points around the edge
Points on a circle may be specified as a function of the angle θ: x = a + r cos(θ) y = b + r sin(θ) Here, increments of 2π/8 are shown. Addendum: As suggested in a comment by @Christoffer Hammarström, this revised example reduces the number of magic numbers in the original. The desired … Read more