Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 471 Bytes

transform.get_bounds_fit_matrix.rst

File metadata and controls

24 lines (17 loc) · 471 Bytes

get_bounds_fit_matrix

k3d.transform.get_bounds_fit_matrix

Examples

from k3d.transform import get_bounds_fit_matrix

bfm = get_bounds_fit_matrix(0, 1, -1, 1, 2, 4)

"""
array([[1. , 0. , 0. , 0.5],
       [0. , 2. , 0. , 0. ],
       [0. , 0. , 2. , 3. ],
       [0. , 0. , 0. , 1. ]], dtype=float32)
"""