This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Blizzard's profile picture

Drawing Triangles

Started by Blizzard, 09 March 2017 - 07:17 AM
Blizzard #1
Posted 09 March 2017 - 08:17 AM
What variables do I need to find to be able to draw a triangle? Do I just need base & height?
KingofGamesYami #2
Posted 09 March 2017 - 06:22 PM
To draw any triangle you need 3 points (the corners).
Dave-ee Jones #3
Posted 09 March 2017 - 10:57 PM
You could theoretically use base and height but that would be a bit more tedious, as you would have to calculate (which I guess you have to do anyway with the 3 points method…) where the edges should go based on the height/base. Also, you would need at least 1 point to start the draw from.
valithor #4
Posted 09 March 2017 - 11:26 PM
You could theoretically use base and height but that would be a bit more tedious, as you would have to calculate (which I guess you have to do anyway with the 3 points method…) where the edges should go based on the height/base. Also, you would need at least 1 point to start the draw from.

You would have to make assumptions when drawing. Base and height is not enough to draw 1 unique triangle, which is why you would want to use the three points.
Blizzard #5
Posted 11 March 2017 - 08:47 AM
Ah I see, thank-you :)/>/>
Edited on 11 March 2017 - 07:48 AM