differt.utils.sample_points_in_bounding_box#
- sample_points_in_bounding_box(bounding_box, shape=(), *, key)[source]#
Sample point(s) in a 3D bounding box.
- Parameters:
bounding_box (
Float[ArrayLike, "2 3"]) – The bounding box (min. and max. coordinates).key (
Key[Array, ""]|UInt32[Array, "2"]|UInt32[Array, "4"]) – Thejax.random.PRNGKeyto be used.
- Return type:
- Returns:
An array of points randomly sampled.