Rigid transformation and rotation of polygon in graph

I would like to create a polygon in a graph and have students be able to move the polygon and rotate it. I know how to do it if the polygon is a .jpg but not a polygon that I build. How do I make it rigid and floating?

Thank you!!!

I just figured out how to do the rigid movement, now I just need the rotation of the piece - hopefully with just a click on the polygon and not dragging a point.

I have a rotation example saved in my graphs here that might help. I’m not sure that you can click and rotate a polygon in a graph (yet), so would it work for you if the rotation is controlled by a button click?

Yes, a button click to do the rotation (without animation) would work.

There are lots of ways to take this from here, so let me know if this isn’t what you’re looking for.

I actually got the polygon to rotate just by dragging a point. I updated the previous activity to include that on screen 2.

1 Like

That is perfect! Thank you!!!

What you did on slide 2 is kind of what I am looking for. However, when I try to translate your code to my code, I’m getting lost. I have attached a copy of my code (slide 3). I have it set so that dragging the blue point will allow rigid movement. I would like the student to be able to use the green point to rotate the triangle about the blue point. Is this possible?

Thank you so much for your assistance!!!

Whew, this was a good mental exercise! I haven’t done this much trig in a long time! Check screen 3 of the original activity.

Thank you! That is exactly what I wanted.

I’m trying to make multiple triangles and I have been successful in making a second triangle with adjustments to the coding except for the point of rotation. I don’t understand the meaning so I don’t know how to adjust it. Can you help me understand these two lines:

Thank you for all of your time and work that you have done for me!

Sorry, I should have generalized the R variable for you so that all you had to do was change variable names. The first expression should be ok to use, but I’ll explain what each part is. The entire thing is just a pair of expressions that creates a point to trace a parametric circle based on the slider a_2. Make sure to long press on the colorful dot and turn on the option to drag the point. If you replace each a_2+R_2 with t, you will see the circle that the point traces. It should look like this:
image
The circled parts in the next image shows where the point of rotation will be. This is what I visualized the center of the circle to be in the first image.


The circled parts in the next image calculates the length of the radius of the circle.

Finally, the a_2+R_2 calculates the angle that is created as seen in this image (thinking of this like a unit circle). If R_2 were zero, the blue point would be roughly located at (9.9,4).
image

The only thing that’s preventing your graph to work is to calculate that angle. To do this, I used the idea on how to find the angle between two vectors. If you use this for `R_2, it should (hopefully) work for you.
image

1 Like

Thank your for explaining and helping me. I tried the new code for R_2 and I’m getting an error: cannot access a coordinate of a number. I’m not sure what that means or what to adjust.

Something is possibly mislabeled in what I sent you. Can you share the screen so I can see the labels of the other variables? I was kind of guessing based on what you sent before.

It’s slide 4: 1.1: Investigation 9 • Activity Builder by Desmos

Thank you, again!!!

The problem was hard to catch, but it looked like one of the V_{2a} variables wasn’t quite formatted correctly (the a wasn’t subscript). I also had to subtract the R_2 variable from 2pi since it was a reflex angle. Here’s a link to the graph. You can just the url and paste it into an open expression line in your activity and the graph will overwrite anything you previously had there.

1 Like

I don’t know how to thank you enough! That is perfect. I am learning so much from all of you!

1 Like

I finally have everything programed and as I was checking, I found an error. For some reason, triangles 1,3, and 4 are linked together and the rotating point for triangle 3 is not locked to vertex B and this point is controlling the rotation for all three triangles. I keep looking at my code and even redoing the code for these three triangles and I’m not finding the error. Slide 3.

This looks really nice! I noticed a few subscripts were missing on the problematic triangles for the a variable. This should work now. Graphing Calculator

1 Like

Thank you! I kept looking for the subscripts because I knew that had to be it but I just couldn’t find them! Thank you again for all of your assistance!!!