radius of a circle, must be > 0
in degrees, where 0 <= angle < 180
the length of the chord subtended by the given angle
in a circle of the given radius
Approximate a circle by drawing a many-sided regular polygon, using only right-hand turns, and restoring the turtle's original heading and position after the drawing is complete.
the turtle context
radius of the circle circumscribed around the polygon, must be > 0
number of sides of the polygon to draw, must be >= 10
Draw your personal, custom art.
Many interesting images can be drawn using the simple implementation of a turtle. See the problem set handout for more information.
the turtle context
Draw a square.
the turtle context
length of each side, must be >= 0
Given a set of points, find a shortest path that connects the points.
input points
an array containing all the input points, in an order that minimizes the total length of the line segments from each point to its successor in the array (i.e., minimizing the sum of the distances from array[i] to array[i+1] for all adjacent indices i,i+1 in the array )
Given three non-collinear points, calculate the incenter (center of the inscribed circle) of the triangle with vertices at those points.
one point
another point
a third point which is not collinear with p1 and p2
the center of the circle inscribed in the triangle whose vertices are p1, p2, p3.
Generated using TypeDoc
Determine the length of a chord of a circle. (There is a simple formula; derive it or look it up.)