Geometry Expressions

Arcing a Segment

We need to turn a line segment into an arc. We know the offset at the center, and need the radius of the arc.

First draw the segment, and specify coordinates of its end points.

Animation: drawing a segment and setting its end point coordinates

Now construct the center point and create a perpendicular segment length h.

Animation: constructing the midpoint and a perpendicular segment of length h

Create a circle through the three points

Animation: creating a circle through the three points

Measure the radius.

Animation: measuring the circle's radius

Copy as C#.

Animation: copying the radius as C#

And paste into a code editor.

Animation: pasting the C# code into a code editor