単位円上に等間隔で置かれた n 個の頂点がある正多角形を与える.
RegularPolygon[r,n]
半径 r の正多角形を与える.
RegularPolygon[{r,θ},n]
軸に対して角 θ から始める.
RegularPolygon[{x,y},rspec,n]
多角形の中心を{x,y}にする.
RegularPolygon
単位円上に等間隔で置かれた n 個の頂点がある正多角形を与える.
RegularPolygon[r,n]
半径 r の正多角形を与える.
RegularPolygon[{r,θ},n]
軸に対して角 θ から始める.
RegularPolygon[{x,y},rspec,n]
多角形の中心を{x,y}にする.
詳細とオプション
- RegularPolygonは,幾何学領域およびグラフィックスプリミティブとして使うことができる.
- 角 θ は,正の x 方向から反時計回りにラジアン単位で計測される.
- 整数 n についてのRegularPolygonは,連続する点の間の角度が等しい多角形を表す.
- CanonicalizePolygonを使って正多角形を明示的なPolygonオブジェクトに変換することができる.
- RegularPolygonはGraphicsで使うことができる.
- グラフィックスでは,点{x,y}は,Scaled,Offset,ImageScaled,Dynamicの式でよく,半径 r は,Scaled,ImageScaled,Dynamicでよい.
- グラフィックスの描画は,FaceForm,EdgeForm,色等の指示子の影響を受ける.
例題
すべて開く すべて閉じる例 (3)
Graphics[RegularPolygon[5]]RegularPolygonにさまざまなスタイルを適用する:
ℛ = RegularPolygon[8];
{Graphics[{Pink, ℛ}], Graphics[{EdgeForm[Thick], Pink, ℛ}], Graphics[{EdgeForm[Dashed], Pink, ℛ}], Graphics[{EdgeForm[Directive[Thick, Dashed, Blue]], Pink, ℛ}]}Area[RegularPolygon[6]]RegionCentroid[RegularPolygon[6]]スコープ (17)
グラフィックス (7)
指定 (4)
Table[Graphics[RegularPolygon[n]], {n, 3, 10}]rp = Table[RegularPolygon[r, 5], {r, 1, 4}];Graphics[{Opacity[0.2], rp}]rp = Table[RegularPolygon[{1, t Pi / 6}, 3], {t, 4}];Graphics[{Opacity[0.2], rp}]cp = CirclePoints[2, 6];rp = Table[RegularPolygon[p, {1, 0}, 6], {p, cp}];Graphics[rp]スタイル付け (2)
座標 (1)
Dynamic座標を使う:
Slider2D[Dynamic@a, {0, 3}]
Graphics[RegularPolygon[Dynamic[a], 5, 5], Frame -> True, PlotRange -> 5]Slider[Dynamic@b, {1, 3}]
Graphics[RegularPolygon[{0, 0}, Dynamic[b], 5], Frame -> True, PlotRange -> 5]領域 (10)
RegionEmbeddingDimension[RegularPolygon[n]]RegionDimension[RegularPolygon[n]]{RegionMember[RegularPolygon[7], {0, 0}], RegionMember[RegularPolygon[7], {0, 2}]}RegionMember[RegularPolygon[{0, 0}, {1, 0}, 4], {x, y}]ℛ = RegularPolygon[6];{Area[ℛ], RegionMeasure[ℛ]}c = RegionCentroid[ℛ]Graphics[{{Pink, ℛ}, {Black, Point[c]}}]ℛ = RegularPolygon[6];{RegionDistance[ℛ, {1, 2}], RegionDistance[ℛ, {0, 0}]}{Plot3D[Evaluate@RegionDistance[ℛ, {x, y}], {x, -2, 2}, {y, -2, 2}, MeshFunctions -> {#3&}, Mesh -> 5, Exclusions -> Norm[{x, y}] == 1], ContourPlot[Evaluate@RegionDistance[ℛ, {x, y}], {x, -3, 3}, {y, -3, 3}, Contours -> {{0.5, Red}, {1, Green}, {1.5, Blue}}]}ℛ = RegularPolygon[6];{SignedRegionDistance[ℛ, {1, 2}], SignedRegionDistance[ℛ, {0, 0}]}Plot3D[SignedRegionDistance[ℛ, {x, y}], {x, -2, 2}, {y, -2, 2}, MeshFunctions -> {#3&}, Mesh -> {{0}}, MeshShading -> {Red, Green}, Exclusions -> Norm[{x, y}] == 1]ℛ = RegularPolygon[6];RegionNearest[ℛ, {5, 6}]pts = Table[2{Cos[k ], Sin[k]}, {k, 0., 15}];
nst = RegionNearest[ℛ, #]& /@ pts;Legended[Graphics[{{Gray, ℛ}, {Thin, Gray, Line[Transpose[{pts, nst}]]}, {Red, Point[pts]}, {Blue, Point[nst]}}], PointLegend[{Red, Blue}, {"start", "nearest"}]]ℛ = RegularPolygon[6];BoundedRegionQ[ℛ]rr = RegionBounds[ℛ]Graphics[{StandardGreen, ℛ, {EdgeForm[{Dashed, Red}], Opacity[0.1, Yellow], Cuboid@@Transpose[rr]}}]ℛ = RegularPolygon[{Subscript[x, 0], Subscript[y, 0]}, {r, 0}, 6];Integrate[x y, {x, y}∈ℛ]//Simplifyℛ = RegularPolygon[6];{MinValue[{x y - x, {x, y}∈ℛ}, {x, y}], ArgMin[{x y - x, {x, y}∈ℛ}, {x, y}]}ℛ = RegularPolygon[{1, 2}, {3, 0}, 6];Solve[x^2 + y^2 == 7 && x y == 1 && {x, y}∈ℛ, {x, y}]Show[{Graphics[{{StandardGreen, ℛ}, {Blue, Circle[{0, 0}, Sqrt[7]]}}], Plot[1 / x, {x, -3, 5}, PlotRange -> {{-3, 5}, {-3, 6}}], Graphics[{PointSize[Large], Red, Point[{x, y}] /. %}]}, Axes -> True]アプリケーション (4)
共通の原点を中心にして回転させた三角形のRegionUnionを取り,星の領域を作る:
ℛ = RegionUnion@@Table[RegularPolygon[{1, t Pi / 6}, 3], {t, 4}];Region[ℛ]RegionProductで3Dの押出し形成を作る:
ℛ = RegionProduct[RegularPolygon[5], Line[{{0}, {1}}]];Region[ℛ]Plot3D[Sin[x + Cos[y]], {x, y}∈RegularPolygon[6]]格子の中にはセルとして正多角形を持つものがある.格子基底を考える:
b = {{-Sqrt[3], -1}, {-Sqrt[3], 1}};pts = Tuples[Range[0, 4], 2].b;tiles = Table[RegularPolygon[p, {1, 0}, 6], {p, pts}];Graphics[{Gray, tiles, Red, Point[pts]}]特性と関係 (3)
RegularPolygonは,
個の頂点が単位円上に等間隔で置かれたPolygonのことである:
n = 7;p = Polygon[CirclePoints[n]];rp = RegularPolygon[n];Graphics /@ {p, rp}CirclePointsを使って単位円上に等間隔で置かれた点を生成する:
n = 7;
{rp, cp} = {RegularPolygon[n], CirclePoints[n]};Graphics[{rp, PointSize[Large], Red, Point[cp]}]
とした単位円上の正多角形の面積は,単位Diskのそれである:
Limit[Area[RegularPolygon[n]], n -> Infinity]Area[Disk[]]おもしろい例題 (2)
Graphics[{EdgeForm[Black], Table[{Opacity[0.2], Hue[RandomReal[]], RegularPolygon[RandomReal[9, 2], {RandomReal[], 0}, RandomInteger[{3, 7}]]}, {200}]}]rp = Table[RegularPolygon[r, r + 2], {r, 9}];Graphics[{Opacity[0.15], rp}]関連するガイド
-
▪
- グラフィックスオブジェクト ▪
- 基本的な特殊領域 ▪
- 平面幾何学 ▪
- 総合幾何学 ▪
- 多角形
テキスト
Wolfram Research (2015), RegularPolygon, Wolfram言語関数, https://reference.wolfram.com/language/ref/RegularPolygon.html (2019年に更新).
CMS
Wolfram Language. 2015. "RegularPolygon." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/RegularPolygon.html.
APA
Wolfram Language. (2015). RegularPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegularPolygon.html
BibTeX
@misc{reference.wolfram_2026_regularpolygon, author="Wolfram Research", title="{RegularPolygon}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/RegularPolygon.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_regularpolygon, organization={Wolfram Research}, title={RegularPolygon}, year={2019}, url={https://reference.wolfram.com/language/ref/RegularPolygon.html}, note=[Accessed: 03-November-2026]}