CoordinateBoundingBoxArray

CoordinateBoundingBoxArray[{{xmin,ymin,},{xmax,ymax,}}]

generates an array of {x,y,} coordinates with integer steps in each dimension.

CoordinateBoundingBoxArray[{min,max},d]

uses step d in each dimension.

CoordinateBoundingBoxArray[{min,max},{dx,dy,}]

uses steps dx, dy, in successive dimensions.

CoordinateBoundingBoxArray[{min,max},Into[n]]

divides into n equal steps in each dimension.

CoordinateBoundingBoxArray[{min,max},steps,offsets]

specifies offsets to use for each coordinate point.

CoordinateBoundingBoxArray[{min,max},steps,offsets,k]

expands the array by k elements in every direction.

Details

  • CoordinateBoundingBoxArray gives an array of coordinates for points in a regular lattice.
  • In the default case, the sequence of values chosen in each direction is obtained by starting from the minimum value and repeatedly adding the step corresponding to that direction until the maximum value is reached.
  • When no offsets are specified, the coordinates correspond directly to the sequences of values.
  • Offsets can be given in terms of absolute distances, or by using Scaled. Scaled[1/2] puts the coordinate points at the center of every "cell".
  • Values in CoordinateBoundingBoxArray can be Quantity objects.

Examples

open allclose all

Basic Examples  (3)

A lattice of two-dimensional points:

An array of 3D points with given discretization steps:

Return center points of the cells of the grid:

Scope  (6)

Provide corner positions for the coordinate array, with default discretization, offsets, and padding:

Specify a common discretization step for all dimensions:

Specify respective cell sizes for different dimensions:

Give arguments as Quantity objects:

Return center points of the cells of the grid:

Numeric offset is interpreted as absolute:

Specify any relative offset using Scaled:

Return additional layers of points or remove some of them:

Specify number of subdivisions:

Properties & Relations  (4)

CoordinateBoundingBox returns the corner positions for 0 offsets:

With other offsets the result will be different:

CoordinateBoundsArray uses a list of ranges instead of corner positions:

CoordinateBoundingBoxArray returns an array of lists of coordinates, even in only one dimension:

Range returns a list of those individual coordinates:

CoordinateBoundingBoxArray specifies number of subdivisions using Into:

Subdivide returns a list of those individual coordinates:

Wolfram Research (2015), CoordinateBoundingBoxArray, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html.

Text

Wolfram Research (2015), CoordinateBoundingBoxArray, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html.

CMS

Wolfram Language. 2015. "CoordinateBoundingBoxArray." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html.

APA

Wolfram Language. (2015). CoordinateBoundingBoxArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html

BibTeX

@misc{reference.wolfram_2024_coordinateboundingboxarray, author="Wolfram Research", title="{CoordinateBoundingBoxArray}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html}", note=[Accessed: 17-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_coordinateboundingboxarray, organization={Wolfram Research}, title={CoordinateBoundingBoxArray}, year={2015}, url={https://reference.wolfram.com/language/ref/CoordinateBoundingBoxArray.html}, note=[Accessed: 17-November-2024 ]}