Class for defining a circular sector.
Can be used for 2D Grids for definining a circular sector or for 3D grids for a cylindrical sector parallel to the z-axis.
x= Float(0.0, …¶
x position of the circle center
y= Float(0.0, …¶
y position of the circle center
r= Float(1.0, …¶
radius of the circle
Queries whether the coordinates in a given array lie within the circular sector. If no coordinate is inside, the nearest one outside 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