RotationTransform
has options RotationTransform[{u,v},p]
gives a rotation about the point p that transforms u to the direction of v.
But why there is only Rotate[g,{u,v}]
How to set the point p in Rotate
?
You could translate the figure being rotated back and forth.
GeometricTransformation[g, RotationTransform[{u, v}, p]]
is equivalent to
Translate[Rotate[Translate[g, -p], {u, v}], p]
For example,
u = {1, 0};
v = {1, 1/5};
p = {1/3, 1/3};
g = Rectangle[];
Graphics[GeometricTransformation[g, RotationTransform[{u, v}, p]], Axes -> True]
Graphics[Translate[Rotate[Translate[g, -p], {u, v}], p], Axes -> True]
This works in both 2D and 3D.
Rotate
which does just that... $\endgroup$RotationTransform[{u,v},p]
. There is onlyRotate[g,{u,v}]
but without a reference point. AndRotate[g,θ,{u,v}]
is totally different thing. Would you help me again? $\endgroup$Rotate[g,θ,{x,y}]
rotates about the point". $\endgroup$