function [Tz, Dz] = FCN_basic_mot(var, type)
% Transformacne matice a maticove diferencialne operatory zakladnych
% pohybov.
% var - premenna
% type - typ zakladneho pohybu - 1,2,3,4,5,6

if type == 1
    Tz = [1 0 0 var;
          0 1 0 0;
          0 0 1 0;
          0 0 0 1];

    Dz = zeros(4);
    Dz(1,4) = 1;
end

if type == 2
    Tz = [1 0 0 0;
          0 1 0 var;
          0 0 1 0;
          0 0 0 1];

    Dz = zeros(4);
    Dz(2,4) = 1;
end

if type == 3
    Tz = [1 0 0 0;
          0 1 0 0;
          0 0 1 var;
          0 0 0 1];

    Dz = zeros(4);
    Dz(3,4) = 1;
end

if type == 4
    Tz = [1 0         0        0;
          0 cos(var) -sin(var) 0;
          0 sin(var)  cos(var) 0;
          0 0         0        1];

    Dz = zeros(4);
    Dz(2,3) = -1;
    Dz(3,2) = 1;
end

if type == 5
    Tz = [cos(var) 0 sin(var) 0;
          0        1 0        0;
         -sin(var) 0 cos(var) 0;
          0        0 0        1];

    Dz = zeros(4);
    Dz(1,3) = 1;
    Dz(3,1) = -1;
end

if type == 6
    Tz = [cos(var) -sin(var) 0 0;
          sin(var)  cos(var) 0 0;
          0         0        1 0;
          0         0        0 1]; 

    Dz = zeros(4);
    Dz(1,2) = -1;
    Dz(2,1) = 1;
end