clc;

x = [100 600];
y = [200 200];
xx = [2400 2000];
yy = [900 600];

x4 = 300;
y4 = 400;

klic = trn_klic(x, y, xx, yy)
[xx4 yy4] = trn_xy(klic, x4, y4)