# ConvexSector¶

class acoular.grids.ConvexSector

Class for defining a convex hull sector.

Can be used for 2D Grids for definining a convex hull sector.

contains(pos)

Queries whether the coordinates in a given array lie within the convex sector. If no coordinate is inside, the nearest one to the rectangle center is returned if default_nearest is True.

Parameters
posarray of floats

Array with the shape 3x[number of gridpoints] containing the grid positions

Returns
array of bools with as many entries as columns in pos

Array indicating which of the given positions lie within the given sector