S
S
samsungovetch2018-07-10 10:22:17
C++ / C#
samsungovetch, 2018-07-10 10:22:17

C/C# - How to draw a triangle using the rubber band method?

Construct a triangle with given vertices. The points of the screen, which are the vertices of the triangle, are indicated from the keyboard using the rubber thread method.
What is the rubber thread method? I found two sources of similar programs - in one on Turbo Pascal it was necessary to control a point on the screen, press ENTER, place the second, third, and then they were connected by lines.
In the C# source, you could enter the coordinates into the fields on the screen, click on the button, and the triangle would appear.
Help understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-07-10
@GavriKos

There is even a guest for this: tdocs.su/23030
When constructing these figures, any of the vertices can be marked as fixed and, accordingly, any other vertex allows you to draw a triangle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question