给出 TransformationFunction,表示在二维平面内,绕原点旋转 θ 角度.
RotationTransform[θ,p]
绕二维点 p 做二维旋转.
RotationTransform[θ,w]
沿三维向量 w 的方向作三维旋转.
RotationTransform[θ,w,p]
绕 w 轴,向 p 点的三维旋转.
RotationTransform[{u,v}]
绕原点旋转,转换向量 u 的方向到向量 v 的方向.
RotationTransform[{u,v},p]
绕点 p 的旋转,转换向量 u 的方向到向量 v 的方向.
RotationTransform[θ,{u,v},…]
在向量 u 和向量 v 确定的平面内,旋转 θ 弧度.
RotationTransform
给出 TransformationFunction,表示在二维平面内,绕原点旋转 θ 角度.
RotationTransform[θ,p]
绕二维点 p 做二维旋转.
RotationTransform[θ,w]
沿三维向量 w 的方向作三维旋转.
RotationTransform[θ,w,p]
绕 w 轴,向 p 点的三维旋转.
RotationTransform[{u,v}]
绕原点旋转,转换向量 u 的方向到向量 v 的方向.
RotationTransform[{u,v},p]
绕点 p 的旋转,转换向量 u 的方向到向量 v 的方向.
RotationTransform[θ,{u,v},…]
在向量 u 和向量 v 确定的平面内,旋转 θ 弧度.
更多信息
- RotationTransform 给出一个可以应用到向量的 TransformationFunction.
- θ Degree 或 θ° 用度数指定角度.
- 在全维中,RotationTransform[θ,{u,v},p] 可以表示关于点 p 的任意旋转.
- 在 RotationTransform[θ,{u,v},p] 中,正 θ 角等于向量 u 与向量 v 的夹角.
- RotationTransform[θ] 等同于 RotationTransform[θ,{{1,0},{0,1}}].
- RotationTransform[θ,w] 等同于 RotationTransform[θ,{u,v}],其中 u⊥w、v⊥w 和 u,v,w 构成右手坐标系.
- RotationTransform[θ,{u,v}] 可以有效地指定
维空间的组
的任何一个元素. RotationTransform[θ,{u,v},p] 可以有效地指定
维空间中,特定的欧几里得组中的任意一个元素.
范例
打开所有单元 关闭所有单元基本范例 (4)
r = RotationTransform[θ]r[{x, y}]r = RotationTransform[θ, {0, 0, 1}]r[{x, y, z}]Graphics[GeometricTransformation[Rectangle[], RotationTransform[30Degree]], Frame -> True]cow = ExampleData[{"Geometry3D", "Cow"}, "GraphicsComplex"];Manipulate[Graphics3D[{EdgeForm[None], GeometricTransformation[cow, RotationTransform[k Pi / 8, {1, 0, 0}]]}], {k, -1, 1}, SaveDefinitions -> True]范围 (9)
RotationTransform[θ, {px, py}]RotationTransform[θ, {1, 0, 0}, {px, py, pz}]RotationTransform[θ, {{1, 0}, {0, 1}}]RotationTransform[θ, {{1, 0, 0}, {0, 1, 0}}]RotationTransform[θ, {{1, 0, 0, 0}, {0, 1, 0, 0}}]在由 s{1,-1,1}+t{1,1,1} 确定的平面内,一个三维旋转 θ 弧度:
r = RotationTransform[θ, {{1, -1, 1}, {1, 1, 1}}]r[{1, -1, 1}]//TogetherComplexExpand[RotationTransform[Pi, {x, y, z}], TargetFunctions -> {Re, Im}]//SimplifySimplify[%, x ^ 2 + y ^ 2 + z ^ 2 == 1]gr = {Rectangle[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0}]}, {Green, Point[{1, 1}]}};Graphics[{{Opacity[.35], Blue, gr}, GeometricTransformation[{Opacity[.85], Red, gr}, RotationTransform[Pi / 6, {1, 1}]]}]gr = {Cuboid[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0, 0}]}, {Green, Point[{1, 1, 1}]}};Graphics3D[{{Opacity[.35], Blue, gr}, GeometricTransformation[{Opacity[.85], Red, gr}, RotationTransform[Pi / 6, {0, 0, 1}, {1, 1, 1}]]}, Boxed -> False]应用 (5)
基本 (2)
GreatCircle[{u_, v_}, θ_] := RotationTransform[θ, {u, v}][Normalize[u]];圆穿过 {1,-1,1}/√3 和 {1,1,1}/√3 :
{u, v} = Normalize /@ {{1, -1, 1}, {1, 1, 1}};GreatCircle[{u, v}, θ]//Togetherc = ParametricPlot3D[ Evaluate[GreatCircle[{u, v}, θ]], {θ, 0, 2π}]g = Show[ c, Graphics3D[{PointSize[0.02], Point[{u, v}], Opacity[0.5], Sphere[]}], PlotRange -> All]Show[Graphics3D[{Red, Table[GeometricTransformation[Point[u], RotationTransform[θ, {u, v}]], {θ, 0, 2Pi, 2Pi / 50.}]}],
g]Graphics[Table[GeometricTransformation[Style[Text["Q"], FontSize -> Scaled[1.3]], RotationTransform[a, {0, 1}]], {a, Pi / 5 Range[10]}]]图像变换 (3)
使用 RotationTransform 关于 {0,0} 原点旋转图像:
i = [image];ImageTransformation[i, RotationTransform[10°, {0, 0}]]ImageTransformation[i, RotationTransform[10°, {0.5, 0.5 ImageAspectRatio[i]}]]HighlightImage[ImageTransformation[i, RotationTransform[10°, {20, 50}], DataRange -> Full], {PointSize[Large], {20, 50}}]ImageTransformation[[image], RotationTransform[Pi / 8, {0, 0, 1}]]ImageTransformation[[image], RotationTransform[Pi / 8, {0, 0, 1}]]属性和关系 (9)
t = RotationTransform[π / 3, {3, 4}];{p1, p2} = {{10, 17}, {1, 2}};
{tp1, tp2} = t[{p1, p2}];EuclideanDistance[p1, p2] == EuclideanDistance[tp1, tp2]//FullSimplify旋转变换的线性部分由 RotationMatrix 给出:
t = RotationTransform[π / 3, {1, 2, 3}];
m = TransformationMatrix[t][[1 ;; 3, 1 ;; 3]];m == RotationMatrix[π / 3, {1, 2, 3}]对于实旋转,线性部分的矩阵是 OrthogonalMatrixQ:
OrthogonalMatrixQ[m]RotationTransform[θ,{u,v}] 的逆是 RotationTransform[-θ,{u,v}]:
Composition[RotationTransform[θ, {{1, 0, 0}, {0, 0, 1}}],
RotationTransform[-θ, {{1, 0, 0}, {0, 0, 1}}]]//SimplifyRotationTransform[θ,{u,v}] 的逆是 RotationTransform[θ,{v,u}]:
Composition[RotationTransform[θ, {{1, 0, 0}, {0, 0, 1}}],
RotationTransform[θ, {{0, 0, 1}, {1, 0, 0}}]]//SimplifyComposition[RotationTransform[Pi / 3, {{1, 0, 1}, {1 + I, 0, 1}}],
RotationTransform[Pi / 3, {{1 + I, 0, 1}, {1, 0, 1}}]]//SimplifyRotationTransform[θ] 的逆由 RotationTransform[-θ] 得到:
Composition[RotationTransform[θ], RotationTransform[-θ]]//SimplifyRotationTransform[θ,w] 的逆由 RotationTransform[-θ,w] 得到:
Composition[RotationTransform[θ, {0, 0, 1}], RotationTransform[-θ, {0, 0, 1}]]//SimplifyRotationTransform[θ,w] 的逆由 RotationTransform[θ,-w] 得到:
Composition[RotationTransform[θ, {0, 0, 1}], RotationTransform[θ, -{0, 0, 1}]]//SimplifyComposition[RotationTransform[θ, {1, I, 0}], RotationTransform[θ, -{1, I, 0}]]//SimplifyComposition[RotationTransform[Pi / 2, {1, 0, 0}], RotationTransform[Pi / 2, {0, 0, 1}]] ==
RotationTransform[2Pi / 3, {1, -1, 1}]用 Rotate 作图形旋转:
{Graphics[Rotate[Rectangle[], Pi / 6, {0, 0}]], Graphics[GeometricTransformation[Rectangle[], RotationTransform[Pi / 6]]]}{Graphics3D[Rotate[Cuboid[], Pi / 6, {0, 0, 1}, {0, 0, 0}]], Graphics3D[GeometricTransformation[Cuboid[], RotationTransform[Pi / 6, {0, 0, 1}]]]}可能存在的问题 (1)
巧妙范例 (1)
cow = ExampleData[{"Geometry3D", "Cow"}, "GraphicsComplex"];p = {0, 0, -0.251619};Graphics3D[{EdgeForm[None], Opacity[0.5], Table[{Lighter[ColorData[1, k + 2], 0.5], GeometricTransformation[cow, RotationTransform[k Pi / 8, {1, 0, 0}, p]]}, {k, -1, 1}]}, Lighting -> "Neutral", ImageSize -> Large, Boxed -> False]Graphics3D[{EdgeForm[None], Opacity[0.5], Table[{Lighter[ColorData[1, k + 2], 0.5], GeometricTransformation[cow, RotationTransform[k Pi / 8, {0, 1, 0}, p]]}, {k, -1, 1}]}, Lighting -> "Neutral", ImageSize -> Large, Boxed -> False]Graphics3D[{EdgeForm[None], Opacity[0.5], Table[{Lighter[ColorData[1, k + 2], 0.5], GeometricTransformation[cow, RotationTransform[k Pi / 8, {0, 0, 1}, p]]}, {k, -1, 1}]}, Lighting -> "Neutral", ImageSize -> Large, Boxed -> False]相关的工作流程
- 旋转、平移和缩放三维图形
文本
Wolfram Research (2007),RotationTransform,Wolfram 语言函数,https://reference.wolfram.com/language/ref/RotationTransform.html.
CMS
Wolfram 语言. 2007. "RotationTransform." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/RotationTransform.html.
APA
Wolfram 语言. (2007). RotationTransform. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/RotationTransform.html 年
BibTeX
@misc{reference.wolfram_2026_rotationtransform, author="Wolfram Research", title="{RotationTransform}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/RotationTransform.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_rotationtransform, organization={Wolfram Research}, title={RotationTransform}, year={2007}, url={https://reference.wolfram.com/language/ref/RotationTransform.html}, note=[Accessed: 03-November-2026]}