CoordinateBounds[coords]
给出由 coords 定义的区域的边界在每个维度的范围列表 {{xmin,xmax},{ymin,ymax},…}.
CoordinateBounds[coords,δ]
在每个维度把范围坐标外扩 ±δ.
CoordinateBounds[coords,Scaled[s]]
在每个维度外扩缩放量 s.
CoordinateBounds[coords,{p1,p2,…}]
在各个维度分别外扩 p1, p2, ….
CoordinateBounds[coords,{{p1min,p1max},{p2min,p2max},…}]
给出 {{xmin-p1min,xmax+p1max},{ymin-p2min,ymax+p2max},…}.
CoordinateBounds
CoordinateBounds[coords]
给出由 coords 定义的区域的边界在每个维度的范围列表 {{xmin,xmax},{ymin,ymax},…}.
CoordinateBounds[coords,δ]
在每个维度把范围坐标外扩 ±δ.
CoordinateBounds[coords,Scaled[s]]
在每个维度外扩缩放量 s.
CoordinateBounds[coords,{p1,p2,…}]
在各个维度分别外扩 p1, p2, ….
CoordinateBounds[coords,{{p1min,p1max},{p2min,p2max},…}]
给出 {{xmin-p1min,xmax+p1max},{ymin-p2min,ymax+p2max},…}.
更多信息
- CoordinateBounds 会产生一个确定的结果,若所有的坐标都是实数.
- 其它情况下,CoordinateBounds 会进行一些简化.
范例
打开所有单元 关闭所有单元基本范例 (1)
CoordinateBounds[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}]CoordinateBounds[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}, 1]CoordinateBounds[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}, Scaled[1 / 4]]范围 (4)
CirclePoints[5]CoordinateBounds[%]CoordinateBounds[{{1, 2}, {{{{{5, 6}}}}, {9, 10}}}]求一组二维点的边界坐标范围,并在所有方向上向外扩展一个单位:
pts = {{3, -3}, {3, 3}, {-3, 3}, {-3, -3}};CoordinateBounds[pts, 1]CoordinateBounds[pts, {1, 2}]CoordinateBounds[pts, {{1, 2}, {3, 4}}]coords = {{{0.0736388, 2.2431, -0.34123}, {-1.1412, 0.75341, 5.34125}}, {π, E, Sqrt[2]}, {Exp[2], Log[10000], Csc[(1/10)]}, {{{2, 1, 7}, {-9, -5, 7}}, {{-2, 9, 5}, {8, -9, 9}}}};CoordinateBounds[coords]CoordinateBounds[coords, 1]CoordinateBounds[coords, Scaled[.1]]CoordinateBounds[coords, {.1, Scaled[.2], .3}]CoordinateBounds[coords, {0, 1}]CoordinateBounds[coords, {{0, 1}, {1.5, 0.5}, {1 / 2, 1 / 3}}]推广和延伸 (1)
应用 (1)
属性和关系 (4)
一般来说,CoordinateBounds[coords] 是 CoordinateBoundingBox[coords] 的转置:
coords = RandomReal[1, {12, 4}];CoordinateBounds[coords]Transpose[CoordinateBoundingBox[coords]]对矩阵中的坐标,CoordinateBounds[coords] 等价于 Map[MinMax, Transpose[coords]]:
coords = RandomInteger[{-9, 9}, {47, 6}];CoordinateBounds[coords]Map[MinMax, Transpose[coords]]pol = RandomPolygon[10]CoordinateBounds[PolygonCoordinates[pol]]将 RegionBounds 应用于多边形可以得到相同的结果:
RegionBounds[pol]Graphics[{Opacity[0.5], pol, EdgeForm[Magenta], FaceForm[], Rectangle@@Transpose[%]}, Frame -> True]gps = RandomGeoPosition[Entity["Country", "France"], 500]CoordinateBounds[LatitudeLongitude[gps]]可通过 GeoBounds 获得同样的结果,以度数形式表示:
GeoBounds[gps]GeoGraphics[{GeoBoundsRegion[%], Orange, Point[gps]}]相关指南
-
▪
- 列表中的数学和统计运算 ▪
- 正则和坐标数组
文本
Wolfram Research (2015),CoordinateBounds,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CoordinateBounds.html.
CMS
Wolfram 语言. 2015. "CoordinateBounds." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CoordinateBounds.html.
APA
Wolfram 语言. (2015). CoordinateBounds. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CoordinateBounds.html 年
BibTeX
@misc{reference.wolfram_2026_coordinatebounds, author="Wolfram Research", title="{CoordinateBounds}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CoordinateBounds.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_coordinatebounds, organization={Wolfram Research}, title={CoordinateBounds}, year={2015}, url={https://reference.wolfram.com/language/ref/CoordinateBounds.html}, note=[Accessed: 11-September-2026]}