Advanced Visualization
Interactive Geometry
Drag geometry points and watch measurements update live.
The vertices are A(0, 0), B(6, 0), and C(2, 4). The base AB lies on the x-axis and has length 6. The height from C to that base is 4, so the area is (1/2)·6·4 = 12.
Side AC is √(2² + 4²) = √20 and side BC is √((2−6)² + 4²) = √32. The drawing labels the triangle from these coordinates. Moving one vertex in the input changes both the picture and the side lengths.
Equation
triangle A(0,0) B(6,0) C(2,4)
Lengths and tangents
Geometry examples state objects and a relationship, then DGS draws the figure and reports the measurement. A distance is the length of the segment between two points. A common tangent is a line that touches two circles, either externally or internally.
The drawing is there so the algebra has a picture. Lengths that come out as perfect squares stay exact. Other lengths keep a radical when the engine can simplify one, plus a decimal. Editing a coordinate or a radius is the fastest way to see which part of the formula changed.
Reading the input
triangle A(0,0) B(6,0) C(2,4)— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
Triangle
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
triangle A(0,0) B(6,0) C(2,4)
Midpoint
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
midpoint of A(0,0) and B(6,4)
Circle
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
circle center A(0,0) through B(3,0)
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.