get_bounding_box_point#

k3d.helpers.get_bounding_box_point(position)[source]#

Return the boundaries of a position.

Parameters

position (array_like) – Array of numbers.

Returns

Array of numbers.

Return type

ndarray

Examples#

import k3d
import numpy as np

pos = np.array([1, 2, 3])

box_point = k3d.helpers.get_bounding_box_point(pos)

"""
array([1, 1, 2, 2, 3, 3])
"""