From c23056ed6f0e016f820345301c41eb654567fe8b Mon Sep 17 00:00:00 2001
From: Ivar Stefansson <ist050@uib.no>
Date: Wed, 21 Dec 2016 18:30:21 +0100
Subject: [PATCH] Delete intersection.m

---
 scripts/intersection.m | 27 ---------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 scripts/intersection.m

diff --git a/scripts/intersection.m b/scripts/intersection.m
deleted file mode 100644
index d083df9..0000000
--- a/scripts/intersection.m
+++ /dev/null
@@ -1,27 +0,0 @@
-function [ intersection ] = intersection( k, vk, l, vl)
-%UNTITLED2 Calculates intersections of two lines specified by two sets of
-%points
-%   lines in format [x1, y1; x2, y2]
-%                   [11, 12; 21, 22]
-% line k = ax + b,      l = cx + d
-% vi = true iff i vertical
-if vk
-    c = (l(2,2) - l(1,2)) / (l(2,1)-l(1,1));
-    d = l(1,2) - c*l(1,1);
-    intersection = [k(1), c * k(1) + d];
-elseif vl
-    a = (k(2,2) - k(1,2)) / (k(2,1)-k(1,1));
-    b = k(1,2) - a*k(1,1);
-    intersection = [l(1), a * l(1) + b];
-else
-    a = (k(2,2) - k(1,2)) / (k(2,1)-k(1,1));
-    c = (l(2,2) - l(1,2)) / (l(2,1)-l(1,1));
-    b = k(1,2) - a*k(1,1);
-    d = l(1,2) - c*l(1,1);
-    
-    x = (d-b)/(a-c);
-    %y = a * x + b;
-    intersection = [x, a * x + b];
-end
-end
-
-- 
GitLab