pylbm.elements.Sphere.point_inside

method

Sphere.point_inside(grid)

return a boolean array which defines if a point is inside or outside of the sphere.

Parameters:
gridndarray

coordinates of the points

Returns:
ndarray

Array of boolean (True inside the sphere, False otherwise)

Notes

the edge of the sphere is considered as inside.