What is the image of the polygon below after the rotation
T_{{ROTDEG}^\circ{} }
?
A rotation T_{\LARGE{r^\circ{}}}
rotates points
by r
degrees around (0,0)
counter-clockwise.
To see where a rotation moved this polygon, pick one
point and rotate it. For example, what happens to
( HULL[0].x , HULL[0].y )
under this rotation?
Under the rotation T_{ROTDEG {}^\circ{} }
,
( HULL[0].x , HULL[0].y )
is translated to ( round(TARGET[0][0]) ,
round(TARGET[0][1]))
. Where is the rest
of the polygon rotated?
To get from (HULL[0].x, HULL[0].y)
to (round(TARGET[0][0]), round(TARGET[0][1]))
,
we rotated it ROTDEG{}^\circ{}
counter-clockwise, or through
one quarter of a circle.
To get from (HULL[0].x, HULL[0].y)
to (round(TARGET[0][0]), round(TARGET[0][1]))
,
we rotated it ROTDEG{}^\circ{}
counter-clockwise, or through
one half of a circle.
To get from (HULL[0].x, HULL[0].y)
to (round(TARGET[0][0]), round(TARGET[0][1]))
,
we rotated it ROTDEG{}^\circ{}
counter-clockwise, or through
three quarters of a circle.
The orange outline shows where the polygon ends up after the translation.
What is the transformation that rotates the blue solid shape to the orange dashed shape?
{\LARGE T}
function(guess, maxError) {
var correct = false;
var symmetries = _.map(Geom.rotationalSymmetries(HULL), function(rad) {
return rad / PI * 180;
}).concat(360);
return _.any(symmetries, function(sym) {
return abs((((guess - ROTDEG + sym) % 360) + 360 + 180) % 360 - 180) < maxError;
});
}
{}^\circ{}
A rotation T_{\LARGE{r^\circ{}}}
rotates points
by r
degrees around (0, 0)
counter-clockwise.
To see what rotation moved the blue polygon, pick one
point and rotate it. For example, what happened to
(HULL[0].x, HULL[0].y)
under this rotation?
Under this rotation, (HULL[0].x,
HULL[0].y)
was rotated to
(round(TARGET[0][0]), round(TARGET[0][1]))
.
What does this tell you about the rotation used?
To get from (HULL[0].x, HULL[0].y)
to (round(TARGET[0][0]), round(TARGET[0][1]))
,
we rotated it around (0, 0)
ROTDEG{}^\circ{}
counterclockwise.
T_{ROTDEG^\circ{}}
.