Class for defining a cuboid sector.
Can be used for 3D Grids for definining a cuboid sector.
z_min= Float(-1.0, …¶
The lower z position of the cuboid
z_max= Float(1.0, …¶
The upper z position of the cuboid
Queries whether the coordinates in a given array lie within the rectangular sector. If no coordinate is inside, the nearest one to the rectangle center is returned if
- posarray of floats
Array with the shape 3x[number of gridpoints] containing the grid positions
- array of bools with as many entries as columns in pos
Array indicating which of the given positions lie within the given sector