WindingCount[contour,p]
閉曲線が点 p の周りを回る回転数を与える.
WindingCount
WindingCount[contour,p]
閉曲線が点 p の周りを回る回転数を与える.
詳細とオプション
- WindingCountは回転数としても知られている.
- WindingCountは,自己交差する閉曲線からの多角形の定義に使われることが多い.
- 反時計回りの1回転は値1を,時計回りの1回転は値-1を持つ.複数の輪郭線があるときは,p の周りの回転数は各輪郭線についての回転数の合計である.
- 閉曲線 contour は一般に線分の集合Line[{{p1,p2},…,{pn-1,pn},{pn,p1}}]で,平面上になければならない.
- 多角形 poly については,WindingCount[poly,p]は,多角形の境界線が点 p の周りを回る回数を与える.
例題
すべて開く すべて閉じる例 (1)
スコープ (2)
ℛ = Line[{{0.35, 0.2}, {0.9, 0.75}, {0.1, 0.55}, {0.9, 0.35}, {0.42, 0.9}, {0.35, 0.2}}];WindingCount[ℛ, {0.55, 0.6}]Graphics[{ℛ, Red, Point[{0.55, 0.6}]}]ℛ = Polygon[{{1, 0}, {0, 2}, {-1, 0}, {0, 1}}, {1, 2, 3, 4}];WindingCount[ℛ, {0, 1.5}]Graphics[{ℛ, Red, Point[{0, 1.5}]}]アプリケーション (2)
starPolygonBoundary[{p_, q_}] :=
Line[CirclePoints[p][[NestList[Mod[# + q, p, 1] &, 1, p]]]]ℛ = starPolygonBoundary[{7, 3}];WindingCount[ℛ, {0, 0}]Graphics[{ℛ, Red, Point[{0, 0}]}]ℛ = IconizedObject[«[image]»];points = RandomReal[{-1, 1}, {10000, 2}];counts = WindingCount[ℛ, points];Graphics[{AbsolutePointSize[1], Point[points, VertexColors -> (ColorData[102] /@ counts)]}]特性と関係 (1)
CrossingCountは代りの計数関数である:
contour = Line[{{0.35, 0.2}, {0.42, 0.9}, {0.9, 0.35}, {0.1, 0.55}, {0.9, 0.75}, {0.35, 0.2}}];{CrossingCount[contour, {0.5, 0.5}], WindingCount[contour, {0.5, 0.5}]}考えられる問題 (1)
多角形の境界曲線は,常に重複無しの反時計回りの方向で与えられる:
ℛ = {{(1/2), 1}, {1, 0}, {0, 0}, {(1/2), 1}, {1, 0}, {0, 0}};RegionBoundary[Polygon[ℛ]]WindingCount[Polygon[ℛ], {1 / 2, 1 / 2}]Graphics[{Arrowheads[Medium], Arrow[ℛ], Red, Point[{1 / 2, 1 / 2}]}]テキスト
Wolfram Research (2019), WindingCount, Wolfram言語関数, https://reference.wolfram.com/language/ref/WindingCount.html.
CMS
Wolfram Language. 2019. "WindingCount." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WindingCount.html.
APA
Wolfram Language. (2019). WindingCount. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WindingCount.html
BibTeX
@misc{reference.wolfram_2026_windingcount, author="Wolfram Research", title="{WindingCount}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/WindingCount.html}", note=[Accessed: 16-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_windingcount, organization={Wolfram Research}, title={WindingCount}, year={2019}, url={https://reference.wolfram.com/language/ref/WindingCount.html}, note=[Accessed: 16-November-2026]}