Open sovsay11 opened 3 years ago
As with most features, they are easy to visualize and explain, but difficult to implement. After taking a look at the calculations needed to draw out a triangle using the sides, I have decided that this feature would be better left for later consideration—once I have some more time on my hands.
Regardless, I have ascertained that figuring out the third vertex and then shifting all the vertices based on the canvas' center location is the most efficient way to implement the drawing feature. Other methods include the following:
I suppose the deciding factors in this were time and effort. If I had more time, I would probably implement one of the aforementioned methods. And if I had plans to showcase this application, I would also try to complete the drawing feature. As such, I will implement this feature later, once I have some more free time and insight.
I will also leave this issue open, so that I don't forget about it, haha.
Draw a Triangle
This is not a required feature, although it is something interesting nevertheless. I have worked with the canvas before for other applications, but WPF is a little different. As for the proposed feature, being able to provide values for the sides and then drawing the triangle created from the sides would be pretty neat.
If this feature were to be implemented, several steps would have to be taken:
Some resources that might help: