min_bounding_dimension#
- k3d.helpers.min_bounding_dimension(bounds)[source]#
Return the minimal dimension along axis in a bounds array.
bounds must be of the form [min_x, max_x, min_y, max_y, min_z, max_z].
- Parameters
bounds (array_like) – Array of numbers.
- Returns
Minimum value of the array.
- Return type
number
Examples#
import k3d
import numpy as np
bounds = np.array([-4, 4, 0, 1, -2, 2, -3, 1])
min_dim = k3d.helpers.min_bounding_dimension(bounds)
"""
1
"""