%% Parameter
r = 1;
phi  = deg2rad(30); 
phi2 = deg2rad(90);

%% Kreis
alpha = linspace(0, 2*pi, 100)';
circle = r*[cos(alpha), sin(alpha)];


%% Vektoren
% Kompenten der Vekotren v = [x , y];
v1 = 1*r * [cos(phi)  , sin(phi) ];
v2 = 1*r * [cos(phi2) , sin(phi2)];
diff = v2 - v1;

%% Berechne Gleichung 
l = sqrt((diff(1)^2+diff(2)^2));
x = linspace(v2(1),v1(1),100-0); %Schritte auf der Schnittlage
y = diff(2)/diff(1) * (x - v1(1)) + v1(2); 


[x, y];

%% Plot
figure(1)
axis equal
hold on

plot(circle(:,1),circle(:,2))
quiver(0,0, v1(1), v1(2), 'Autoscale', 'off', 'Showarrowhead', 'off')
quiver(0,0, v2(1), v2(2), 'Autoscale', 'off', 'Showarrowhead', 'off')
quiver(v1(1), v1(2), diff(1), diff(2), 'Autoscale', 'off', 'Showarrowhead', 'off')
plot(x, y, 'go')