9. Arrowheads

Write a program that lets the user click and drag to define a line segment. Add a tail to the segment's starting point and an arrowhead to its ending point, as shown in the following screenshot:

Hint: If <vx, vy> is a vector, then <vy, -vx> and <-vy, vx> are two vectors perpendicular to the original vector.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.104.183