Discuss Scratch

Lego_Tai
Scratcher
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…

Last edited by Lego_Tai (June 20, 2021 12:47:08)

NetherRobot01
Scratcher
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/
The_Imaginarium
Scratcher
1000+ posts

How to draw a equilateral triangle with a specific point

NetherRobot01 wrote:

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/
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:
defineEqual.tri.xyradiussetangleto0repeat4changeangleby360/3gotox:sinofangle*radius+xy:cosofangle*radius+ypendown to complete the trianglepenup
NetherRobot01
Scratcher
14 posts

How to draw a equilateral triangle with a specific point

The_Imaginarium wrote:

NetherRobot01 wrote:

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/
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:
defineEqual.tri.xyradiussetangleto0repeat4changeangleby360/3gotox:sinofangle*radius+xy:cosofangle*radius+ypendown to complete the trianglepenup


Or you could just make a triangle costume…

Last edited by NetherRobot01 (June 20, 2021 13:40:54)

The_Imaginarium
Scratcher
1000+ posts

How to draw a equilateral triangle with a specific point

NetherRobot01 wrote:

snip
Or you could just make a triangle costume…
The OP said draw.

Last edited by The_Imaginarium (June 20, 2021 13:50:57)

Theo_1er
Scratcher
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
Scratcher
77 posts

How to draw a equilateral triangle with a specific point

Theo_1er wrote:

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.
I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0

Lego_Tai wrote:

(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)

The_Imaginarium wrote:

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)
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!
Theo_1er
Scratcher
500+ posts

How to draw a equilateral triangle with a specific point

quasarNebula wrote:

Theo_1er wrote:

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.
I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0

But precisely an example is only a part of all that one can do, it should not be limited to it.
The_Imaginarium
Scratcher
1000+ posts

How to draw a equilateral triangle with a specific point

Theo_1er wrote:

quasarNebula wrote:

Theo_1er wrote:

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.
I think their example (in OP) makes it clear they're looking for an equilateral triangle centered on x0y0

But precisely an example is only a part of all that one can do, it should not be limited to it.
Deep.
Oumuamua
Scratcher
1000+ posts

How to draw a equilateral triangle with a specific point

I think the OP was talking about the circumcenter as origins reference

Powered by DjangoBB