Rotate
更多信息和选项
- θ Degree 或 θ° 指定角度数.
- 如果 Rotate 出现在视图的外围,在 Rotate[g,θ] 等中的对象 g 可以为任何表达式.
- 你可以在 g 的边框内指定特殊点诸如: {Left,Bottom}.
- x 的位置可以指定为 Left, Center 或 Right; y 的位置可以指定为 Bottom, Center 或 Top.
- 如果 Rotate 出现在视图的内部,坐标 {x,y} 采用视图的坐标系统.
- 如果 Rotate 出现在视图的外围,坐标 {x,y} 采用
到
的范围与旋转对象边框交叉. - Rotate[g,θ] 相等于 Rotate[g,θ,{Center,Center}].
- 对于用调整坐标 Scaled[{x,y}] 指定的对象, Rotate 有效地把它转化为相应的普通坐标.
- 如果 Rotate 出现在图形的内部,如果可能, Normal[expr] 替代所有由 gi 变体,其中有明确的坐标发生了变化,构成的Rotate[gi,…].
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (8)
gr = {Rectangle[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0}]}, {Green, Point[{1, 1}]}};Graphics[{{Opacity[.35], Blue, gr}, Rotate[{Opacity[.85], Red, gr}, Pi / 6]}]gr = {Cuboid[], AbsolutePointSize[10], Opacity[1], {Magenta, Point[{0, 0, 0}]}, {Green, Point[{1, 1, 1}]}};Graphics3D[{{Opacity[.35], Blue, gr}, Rotate[{Opacity[.85], Red, gr}, Pi / 6, {0, 0, 1}, {.5, .5, .5}]}, Boxed -> False]Graphics3D[Rotate[Cuboid[], Pi, {0, 0, 1}, {1, 1, 1}], Axes -> True, PlotRange -> {{0, 2}, {0, 2}, {0, 2}}]Graphics3D[Rotate[Cuboid[], {{1, 1, 1}, {0, 0, 1}}]]Graphics3D[Rotate[Cylinder[], Pi / 2, {{1, 1, 0}, {0, 0, 1}}]]Graphics[Rotate[Style[Text["Mathematica"], 24], -Pi / 4]]Graphics[Rotate[Circle[Scaled[{1, 0}]], Pi, {0, 0}], Axes -> True]Graphics[{Circle[], Rotate[Rectangle[], Pi / 4, {Right, Bottom}]}, Axes -> True]应用 (2)
Grid[{
{Rotate["Primary", 90°, {1, 1}], "Red"}, {, "Blue"}, {, "Yellow"},
{Rotate["Secondary", 90°, {1, 1}], "Purple"}, {, "Green"}, {, "Orange"}
}, Frame -> All, Alignment -> Left]Rotate[Grid[Table[Rotate[{i, j}, 45°], {i, 0, 2}, {j, 0, 2}], Frame -> All], -45°]属性和关系 (1)
在可能的情况下, Normal 将明确地变换坐标:
Normal@Rotate[Cylinder[], Pi / 4, {1, 0, 0}]可能存在的问题 (4)
Rotate 用周围框作为默认旋转中心:
Graphics[{Opacity[0.5], Rotate[Rectangle[], Pi / 3]}, Axes -> True]Graphics[{Opacity[0.5], Rotate[Rectangle[], Pi / 3, {0, 0}]}, Axes -> True]Graphics[Rotate[Circle[], Pi / 2, Right], Axes -> True]为了显示转换物体,调整 PlotRange :
Graphics[Rotate[Circle[], Pi / 2, Right], Axes -> True, PlotRange -> 2]Row[{"abc", Rotate["ghi", 90°], "xyz"}, " "]Row[{"abc", Rotate["ghi", 90°, {Left, Baseline}], "xyz"}, " "]NestList[Style[Rotate[#, 30 Degree], Background -> RGBColor[1, 0, 0, 0.2]]&, "R", 8]相关的工作流程
- 旋转、平移和缩放三维图形
文本
Wolfram Research (2007),Rotate,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Rotate.html (更新于 2008 年).
CMS
Wolfram 语言. 2007. "Rotate." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2008. https://reference.wolfram.com/language/ref/Rotate.html.
APA
Wolfram 语言. (2007). Rotate. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Rotate.html 年
BibTeX
@misc{reference.wolfram_2026_rotate, author="Wolfram Research", title="{Rotate}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Rotate.html}", note=[Accessed: 06-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_rotate, organization={Wolfram Research}, title={Rotate}, year={2008}, url={https://reference.wolfram.com/language/ref/Rotate.html}, note=[Accessed: 06-November-2026]}