{"id":352,"date":"2011-09-08T19:40:32","date_gmt":"2011-09-08T19:40:32","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=352"},"modified":"2022-03-26T12:38:23","modified_gmt":"2022-03-26T11:38:23","slug":"2d-line-intersection-using-vectors","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=352","title":{"rendered":"2D Line intersection using vectors"},"content":{"rendered":"\n\n\n<p>In this note I will explain how to find the intersection point P\u00a0 between two line segments. Note that this method will also calculate intersections on extended line segments. <\/p>\n\n\n\n<p>As a reminder the cross product is the area of the parallelogram enclosed by the two As a reminder, the cross product is the area of the parallelogram enclosed by the two vectors. In 2D graphics, we will calculate only the z-component of the cross-vector, which will be called the cross-product in this note.<\/p>\n\n\n\n<p>It can be calculated using the following formula:<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-c604d99c663d9f490b157d2669e34d02_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#97;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#98;&#32;&#61;&#32;&#97;&#95;&#120;&#32;&#32;&#98;&#95;&#121;&#32;&#45;&#32;&#97;&#95;&#121;&#32;&#98;&#95;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"151\" style=\"vertical-align: -6px;\"\/><\/p>\n\n\n\n<p><strong>Calculating the actual intersection:<\/strong><\/p>\n\n\n\n<p>As an example we will calculate the intersection point <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> of line segments <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-655cfe80f708bdc3fc9c95735c974c1f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> as shown in image 1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-1-3.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"281\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-1-3.svg\" alt=\"\" class=\"wp-image-700\"\/><\/a><figcaption>Image 1<\/figcaption><\/figure>\n\n\n\n<p>We will consider the line segments as vectors, this gives us the following vectors.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-5a41461ec7db075dea2926ccba97c195_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;&#32;&#61;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#54;&#92;&#92;&#51;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"83\" style=\"vertical-align: -17px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-e8d29190506e1695e0a58568b6914988_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;&#32;&#61;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#45;&#52;&#92;&#92;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"98\" style=\"vertical-align: -17px;\"\/> <\/p>\n\n\n\n<p>To calculate the intersection point we will first calculate the area of the parallelogram formed by AB and CD as shown in image 2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-2-2.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"284\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-2-2.svg\" alt=\"\" class=\"wp-image-695\"\/><\/a><figcaption>Image 2<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The area can be calculated using the cross product of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-338923e7973024f2ff25e1152fd3d726_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"78\" style=\"vertical-align: 0px;\"\/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-5d2660beafde5af72d1124b28c64aee8_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#54;&#92;&#92;&#51;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#45;&#52;&#92;&#92;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#40;&#54;&#46;&#52;&#41;&#45;&#40;&#45;&#52;&#46;&#51;&#41;&#32;&#61;&#32;&#50;&#52;&#45;&#40;&#45;&#49;&#50;&#41;&#32;&#61;&#32;&#51;&#54;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"489\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p><strong>Calculating the offset on segment <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/><\/strong><\/p>\n\n\n\n<p>We will now calculate the area below vector <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-655cfe80f708bdc3fc9c95735c974c1f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/> as seen in image 3<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-3-1-1.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"269\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-3-1-1.svg\" alt=\"\" class=\"wp-image-701\"\/><\/a><figcaption>Image 3<\/figcaption><\/figure>\n\n\n\n<p>It can be seen the offset on segment on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> will be equal to this area divided by the total area calculated earlier. Fortunately we can easily calculate the area by using the area shown in image 4. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-3-2.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"248\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-3-2.svg\" alt=\"\" class=\"wp-image-697\"\/><\/a><figcaption>Image 4<\/figcaption><\/figure>\n\n\n\n<p>The areas shown in image 3 and image 4  are the same. Note that image 4 shows the parallelogram formed by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-384f3b401d6739513acd472e38839920_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-655cfe80f708bdc3fc9c95735c974c1f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/>, we will use the cross-product to calculate it. <\/p>\n\n\n\n<p>We will introduce vector <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-384f3b401d6739513acd472e38839920_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/> for this.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-1b1899b10a8ad5e04eb0049c0230154c_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#67;&#32;&#61;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#55;&#45;&#50;&#92;&#92;&#51;&#45;&#50;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#53;&#92;&#92;&#49;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"172\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-11ee46f0972cc3b26922df2509132ad3_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#67;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#65;&#66;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#53;&#92;&#92;&#49;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#54;&#92;&#92;&#51;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#40;&#53;&#46;&#51;&#41;&#45;&#40;&#49;&#46;&#54;&#41;&#32;&#61;&#32;&#49;&#53;&#45;&#54;&#32;&#61;&#32;&#57;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"414\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p>Now we are almost done. We have both areas (9 and 36) so we can create the offset <\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-fe49b33df175a8666a0c469c49322be7_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#111;&#102;&#102;&#115;&#101;&#116;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#57;&#125;&#123;&#51;&#54;&#125;&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"123\" style=\"vertical-align: -6px;\"\/> which can be simplified to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-af88e7c322d07dd0645178692bb0108f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#111;&#102;&#102;&#115;&#101;&#116;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"85\" style=\"vertical-align: -6px;\"\/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If we multiply the offset with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> we find the point on the vector <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/>.<\/p>\n\n\n\n<p>Since the line segment <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> does not start on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-1b42d6fefdcf3f4f76b14c50386480f3_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#48;&#92;&#92;&#48;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"29\" style=\"vertical-align: -17px;\"\/> the actual point needs to be moved by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-ed12970f60569db1dfd9f13289854a0d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>  <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-93804dbb2fdd4cafe5ed67c1c13dfae3_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#32;&#61;&#32;&#67;&#32;&#43;&#32;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"113\" style=\"vertical-align: -6px;\"\/><\/p>\n\n\n\n<p>Let&#8217;s check whether it is correct<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-8f221c832c9581d342e3b698dbc51143_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#32;&#61;&#32;&#67;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#67;&#68;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#55;&#92;&#92;&#51;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#43;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#40;&#45;&#52;&#41;&#92;&#92;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#54;&#92;&#92;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"44\" width=\"322\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>As a general formula:<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-892456af039be4aaa6d9152589f87f8a_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#92;&#98;&#111;&#120;&#101;&#100;&#123;&#80;&#32;&#61;&#32;&#67;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#65;&#67;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#65;&#66;&#125;&#123;&#65;&#66;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;&#125;&#67;&#68;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"49\" width=\"196\" style=\"vertical-align: -19px;\"\/><\/p>\n\n\n\n<p>The offset on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> can be negative or larger then one. In that case the intersection is on the extension of line segment <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-812904f548f8b30dd24add605e1f966d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#67;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/>. This is an advantage of this method.<\/p>\n\n\n\n<p><strong>Calculating the offset on segment <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-655cfe80f708bdc3fc9c95735c974c1f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/><\/strong><\/p>\n\n\n\n<p>For the offset of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-655cfe80f708bdc3fc9c95735c974c1f_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"27\" style=\"vertical-align: 0px;\"\/> we repeat the steps above.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>We know calculate the area as shown at image 5<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-4-1.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"266\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-4-1.svg\" alt=\"\" class=\"wp-image-698\"\/><\/a><figcaption>Image 5<\/figcaption><\/figure>\n\n\n\n<p>Which equals the area shown in image 6.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-4-2-1.svg\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"248\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2022\/03\/intersect-4-2-1.svg\" alt=\"\" class=\"wp-image-702\"\/><\/a><figcaption>Image 6<\/figcaption><\/figure>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-7b3ffbc67d6ad1ca77193a605ce6910e_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#67;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#53;&#92;&#92;&#49;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#45;&#52;&#92;&#92;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#40;&#53;&#46;&#52;&#41;&#45;&#40;&#49;&#46;&#45;&#52;&#41;&#32;&#61;&#32;&#50;&#48;&#45;&#40;&#45;&#52;&#41;&#32;&#61;&#50;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"43\" width=\"488\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-91c63925ce167e90be42072381312a31_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#32;&#61;&#32;&#65;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#52;&#125;&#123;&#51;&#54;&#125;&#65;&#66;&#32;&#92;&#116;&#111;&#32;&#32;&#80;&#32;&#61;&#32;&#65;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#125;&#123;&#51;&#125;&#65;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"256\" style=\"vertical-align: -6px;\"\/><\/p>\n\n\n\n<p>Let&#8217;s check whether it is correct<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-a4f03dd53a1c768d3a56719e475ba03d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#32;&#61;&#32;&#65;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#125;&#123;&#51;&#125;&#65;&#66;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#92;&#92;&#50;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#43;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#125;&#123;&#51;&#125;&#40;&#54;&#41;&#92;&#92;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#125;&#123;&#51;&#125;&#51;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#54;&#92;&#92;&#52;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"44\" width=\"306\" style=\"vertical-align: -17px;\"\/><\/p>\n\n\n\n<p>As a general formula:<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-15fd369ce64911290f76eab4412c376b_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#92;&#98;&#111;&#120;&#101;&#100;&#123;&#80;&#32;&#61;&#32;&#65;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#65;&#67;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;&#125;&#123;&#65;&#66;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#67;&#68;&#125;&#65;&#66;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"49\" width=\"194\" style=\"vertical-align: -19px;\"\/> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this note I will explain how to find the intersection point P\u00a0 between two line segments. Note that this method will also calculate intersections on extended line segments. As a reminder the cross product is the area of the parallelogram enclosed by the two As a reminder, the cross product is the area of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[102,103,82],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-geometry","tag-geometry","tag-intersect","tag-vector"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=352"}],"version-history":[{"count":36,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":734,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions\/734"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}