Solved

Say That You Want to Construct a Tiny Drawing Program

Question 16

Essay

Say that you want to construct a tiny drawing program, where the objects are defined using line segments. One might use the rubber-banding ideas presented in this chapter to define the endpoints of line segments, hooking them together into a polyline. One might provide a button that turns a polyline into a polygon. If this approach is taken, what would be a good way to represent the data involved in this program: the points, the line segments, the polylines, the polygons?

Correct Answer:

verifed

Verified

One good way to store the required data ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions