sovsay11 / TriangleApplication

This application will enable users to enter side values of a triangle. The application will then process the input and return whether a valid triangle is possible with the given input, along with the type of triangle and degree values.
0 stars 0 forks source link

Possible Implementation of Triangle Shape #28

Open sovsay11 opened 3 years ago

sovsay11 commented 3 years ago

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:

sovsay11 commented 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.

sovsay11 commented 3 years ago

I will also leave this issue open, so that I don't forget about it, haha.