Rotate[g,θ]
境界ボックスの中央で反時計回りに θ ラジアン回転された2Dグラフィックスプリミティブあるいはその他の任意のオブジェクト g を表す.
Rotate[g,θ,{x,y}]
点{x,y}の回りで回転させる.
Rotate[g,{u,v}]
原点の回りを回転させて2Dあるいは3Dベクトル u を v に変換する.
Rotate[g,θ,w]
原点に固定された3Dベクトル w の回りで3Dグラフィックスプリミティブを θ ラジアン回転させる.
Rotate[g,θ,w,p]
p に固定された3Dベクトル w の回りを回転させる.
Rotate[g,θ,{u,v}]
3Dベクトル u と v で定義される平面上で角度 θ 回転させる.
Rotate
Rotate[g,θ]
境界ボックスの中央で反時計回りに θ ラジアン回転された2Dグラフィックスプリミティブあるいはその他の任意のオブジェクト g を表す.
Rotate[g,θ,{x,y}]
点{x,y}の回りで回転させる.
Rotate[g,{u,v}]
原点の回りを回転させて2Dあるいは3Dベクトル u を v に変換する.
Rotate[g,θ,w]
原点に固定された3Dベクトル w の回りで3Dグラフィックスプリミティブを θ ラジアン回転させる.
Rotate[g,θ,w,p]
p に固定された3Dベクトル w の回りを回転させる.
Rotate[g,θ,{u,v}]
3Dベクトル u と v で定義される平面上で角度 θ 回転させる.
詳細とオプション
- θ 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]は,可能であれば,すべてのRotate[gi,…]構文を座標系が明示的に変換された 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]関連するガイド
-
▪
- 幾何学変換 ▪
- グラフィックスの変形 ▪
- 幾何学的派生領域 ▪
- 多角形 ▪
- 多面体 ▪
- 記号的なグラフィックス言語 ▪
- 角度と極座標
関連するワークフロー
- 3Dグラフィックスの回転・パン・ズームを行う
テキスト
Wolfram Research (2007), Rotate, Wolfram言語関数, https://reference.wolfram.com/language/ref/Rotate.html (2008年に更新).
CMS
Wolfram Language. 2007. "Rotate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Rotate.html.
APA
Wolfram Language. (2007). Rotate. Wolfram Language & System Documentation Center. Retrieved from 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: 13-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: 13-November-2026]}