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?
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?
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:
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:
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.
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).
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.
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.
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.
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
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!!!