Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to draw a equilateral triangle with a specific point
- Lego_Tai
-
1 post
How to draw a equilateral triangle with a specific point
(This is my first time using this)
I wanted to draw an equilateral triangle with a specific point (Let's say x0y0, I wanted to draw a triangle such that the distance from x0y0 to 3 points of the triangle are the same)
Edited: I know I can divide one of the side by 2, then link it with the opposite angle, doing this 3 times will eventually find out the middle point, but… How am I suppose to know it in a graph…
I wanted to draw an equilateral triangle with a specific point (Let's say x0y0, I wanted to draw a triangle such that the distance from x0y0 to 3 points of the triangle are the same)
Edited: I know I can divide one of the side by 2, then link it with the opposite angle, doing this 3 times will eventually find out the middle point, but… How am I suppose to know it in a graph…
Last edited by Lego_Tai (June 20, 2021 12:47:08)
- NetherRobot01
-
14 posts
How to draw a equilateral triangle with a specific point
Hi, I'm Nether and I have a way to do this.
You need to shift the starting point, then draw it.
The specific points are in my project here!
https://scratch.mit.edu/projects/546473755/
You need to shift the starting point, then draw it.
The specific points are in my project here!
https://scratch.mit.edu/projects/546473755/
- The_Imaginarium
-
1000+ posts
How to draw a equilateral triangle with a specific point
Or an easier way: Hi, I'm Nether and I have a way to do this.
You need to shift the starting point, then draw it.
The specific points are in my project here!
https://scratch.mit.edu/projects/546473755/
All the points of an equilateral triangle can be represented as points on a circle, so we just need to increment each of the angles correctly:
- NetherRobot01
-
14 posts
How to draw a equilateral triangle with a specific point
Or an easier way: Hi, I'm Nether and I have a way to do this.
You need to shift the starting point, then draw it.
The specific points are in my project here!
https://scratch.mit.edu/projects/546473755/
All the points of an equilateral triangle can be represented as points on a circle, so we just need to increment each of the angles correctly:
Or you could just make a triangle costume…
Last edited by NetherRobot01 (June 20, 2021 13:40:54)
- The_Imaginarium
-
1000+ posts
How to draw a equilateral triangle with a specific point
The OP said draw. snip
Or you could just make a triangle costume…
Last edited by The_Imaginarium (June 20, 2021 13:50:57)
- Theo_1er
-
500+ posts
How to draw a equilateral triangle with a specific point
Note that you are drawing the specific case where x0y0 is equidistant from the vertices. The op was not as precise and just said that x0y0 must be three points equidistant. So in fact any equilateral triangle containing x0y0 works.
- quasarNebula
-
77 posts
How to draw a equilateral triangle with a specific point
I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0 Note that you are drawing the specific case where x0y0 is equidistant from the vertices. The op was not as precise and just said that x0y0 must be three points equidistant. So in fact any equilateral triangle containing x0y0 works.

(Let's say x0y0, I wanted to draw a triangle such that the distance from x0y0 to 3 points of the triangle are the same)
Plus in this script, you can change zero in the “set angle to 0” block to something else, like the “direction” motion block, and then you can support rotating triangles too! Or an easier way:
All the points of an equilateral triangle can be represented as points on a circle, so we just need to increment each of the angles correctly: (snip)

- Theo_1er
-
500+ posts
How to draw a equilateral triangle with a specific point
I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0 Note that you are drawing the specific case where x0y0 is equidistant from the vertices. The op was not as precise and just said that x0y0 must be three points equidistant. So in fact any equilateral triangle containing x0y0 works.
But precisely an example is only a part of all that one can do, it should not be limited to it.

- The_Imaginarium
-
1000+ posts
How to draw a equilateral triangle with a specific point
Deep.I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0 Note that you are drawing the specific case where x0y0 is equidistant from the vertices. The op was not as precise and just said that x0y0 must be three points equidistant. So in fact any equilateral triangle containing x0y0 works.
But precisely an example is only a part of all that one can do, it should not be limited to it.
- Oumuamua
-
1000+ posts
How to draw a equilateral triangle with a specific point
I think the OP was talking about the circumcenter as origins reference
- Discussion Forums
- » Help with Scripts
-
» How to draw a equilateral triangle with a specific point