mymesh.rays.PointInBox2D#
- mymesh.rays.PointInBox2D(pt, xlim, ylim, inclusive=True)[source]#
Test whether a point is inside a 2 dimensional box
- Parameters:
pt (array_like) – 3D coordinates of a point, shape=(3,)
xlim (array_like) – Lower and upper x limits (e.g. [xmin, xmax])
ylim (array_like) – Lower and upper y limits (e.g. [ymin, ymax])
- Returns:
inside – True if the point is in the box.
- Return type: