CollinearPoints[{p1,p2,p3,…,pn}]
点 p1,p2,p3,…,pnが共線かどうかを調べる.
CollinearPoints
CollinearPoints[{p1,p2,p3,…,pn}]
点 p1,p2,p3,…,pnが共線かどうかを調べる.
詳細
- CollinearPointsは直進性としても知られている.
- 点の集合が1本の直線上にあるかどうかを調べるためによく使われる.
- CollinearPoints[{p1,p2,p3,…,pn}]は,点 p3,…,pnが p1と p2を通る直線上にある場合にTrueを与える.
- 点 p1,p2,p3が共線であるとき,行列{p2-p1,p3-p1}の階数は1以下である.
例題
すべて開く すべて閉じる例 (2)
スコープ (4)
CollinearPointsは二次元の点に使うことができる:
CollinearPoints[{{1, 1}, {3, 4}, {5, 6}}]CollinearPoints[{{1, 2, 1}, {3, 4, 1}, {5, 6, 1}, {7, 8, 1}}]CollinearPoints[{{0, 0, 1, 1}, {1, 0, 1, 0}, {0, 1, 0, 1}, {0, 1, 1, 1}, {0, 0, 0, 1}}]CollinearPointsは数値座標に使うことができる:
CollinearPoints[{{1, 1}, {3, 4}, {5, 6}}]CollinearPoints[{{0, 0, 1}, {1, 0, 1}, {0, 1, 1}, {a, b, c}}]座標集合上のCollinearPoints:
CollinearPoints[{{1, 2, 1}, {3, 4, 1}, {5, 6, 1}, {7, 8, 1}}]CollinearPoints[{Point[{0, 0, 1}], Point[{1, 0, 1}], Point[{0, 1, 1}], Point[{a, b, c}]}]CollinearPoints[Point[{{0, 0, 1}, {1, 0, 1}, {1, 3, 1}, {a, b, c}}]]CollinearPointsは大きい集合に使うことができる:
pts = RandomPoint[Line[{{0, 0}, {1, 0}}], 10 ^ 6];CollinearPoints[pts]//AbsoluteTimingアプリケーション (4)
基本的なアプリケーション (3)
CollinearPoints[{{0, 0}, {a, b}, {c, d}}]{{a, b}, {c, d}} /. FindInstance[% && a ≠ 0, {a, b, c, d}, Reals, 3]CollinearPoints[{{0, 1}, {1, 2}, {x, y}}]pts = {{0, 0}, {1, 1}, {2, 2}};CollinearPoints[pts]Graphics[{InfiniteLine[pts[[1 ;; 2]]], Red, Point[pts]}]幾何 (1)
pts = {{0, 0}, {1, 3}, {2, 2}};CollinearPoints[pts]Graphics[Polygon[pts]]pts = {{0, 0}, {1, 1}, {2, 2}};CollinearPoints[pts]Graphics[{EdgeForm[StandardGray], Polygon[pts]}]特性と関係 (5)
PositivelyOrientedPointsは,共線点にはFalseを返す:
pts = {{0, 0}, {1, 2}, {2, 4}};{CollinearPoints[pts], PositivelyOrientedPoints[pts]}NegativelyOrientedPointsは,共線点にはFalseを返す:
pts = {{0, 0}, {1, 2}, {2, 4}};{CollinearPoints[pts], NegativelyOrientedPoints[pts]}pts = RandomPoint[Line[{{0, 0, 0}, {1, 1, 1}}], 5];{CollinearPoints[pts], CoplanarPoints[pts]}RegionMemberを使って点が共線かどうかを調べる:
RegionMember[Line[{{0, 0}, {1, 1}}], {2, 2}]CollinearPoints[{{0, 0}, {1, 1}, {2, 2}}]InfiniteLineを使ってグラフィック画像を描画する:
pts = {{0, 0}, {1, 1}, {2, 2}};Graphics[{InfiniteLine[pts[[1 ;; 2]]], Red, Point[pts]}]テキスト
Wolfram Research (2020), CollinearPoints, Wolfram言語関数, https://reference.wolfram.com/language/ref/CollinearPoints.html.
CMS
Wolfram Language. 2020. "CollinearPoints." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CollinearPoints.html.
APA
Wolfram Language. (2020). CollinearPoints. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CollinearPoints.html
BibTeX
@misc{reference.wolfram_2026_collinearpoints, author="Wolfram Research", title="{CollinearPoints}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/CollinearPoints.html}", note=[Accessed: 05-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_collinearpoints, organization={Wolfram Research}, title={CollinearPoints}, year={2020}, url={https://reference.wolfram.com/language/ref/CollinearPoints.html}, note=[Accessed: 05-September-2026]}