function T_actual = WP_enforce_dimens(T_actual_in,dimens)
%

T_actual = T_actual_in;

T_actual(1,4) = max(T_actual_in(1,4),dimens(1,1));
T_actual(1,4) = min(T_actual_in(1,4),dimens(1,2));
T_actual(2,4) = max(T_actual_in(2,4),dimens(2,1));
T_actual(2,4) = min(T_actual_in(2,4),dimens(2,2));
T_actual(3,4) = max(T_actual_in(3,4),dimens(3,1));
T_actual(3,4) = min(T_actual_in(3,4),dimens(3,2));
