fractaldna.utils.rotations.matrix_interpolate

fractaldna.utils.rotations.matrix_interpolate(start_matrix, stop_matrix, interpolator, t, precision=0.0001)

Get an interpolated rotation matrix subject to constraints

NOTE: This method is not very effective (kinda sucks)

start_matrix input rotation matrix at t=0 stop_matrix input rotation matrix at t=1 interpolator function that gives position (x, y, z) as a function of t precision default step size used in interpolator