{"id":359,"date":"2011-09-08T20:05:37","date_gmt":"2011-09-08T20:05:37","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=359"},"modified":"2022-03-24T19:19:51","modified_gmt":"2022-03-24T18:19:51","slug":"check-whether-two-2d-vectors-are-coincident","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=359","title":{"rendered":"Check whether two 2D lines are coincident."},"content":{"rendered":"\n\n\n<p>To check whether two 2D lines are coincident, the distance of <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;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-c10ec9debc8ec5dce4c3c5887557202d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"15\" style=\"vertical-align: 0px;\"\/> to <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;\"\/> need to be calculated. For a coincident line both need to be (almost) zero.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"http:\/\/510245153.swh.strato-hosting.eu\/wp-content\/uploads\/2011\/05\/cross11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2019\/12\/wp_lines_coincident.svg\" alt=\"\" class=\"wp-image-598\" width=\"371\" height=\"126\"\/><\/a><\/figure>\n\n\n\n<p>The z component of the cross vector can be used for this quite elegantly.<\/p>\n\n\n\n<p><strong>Note:<\/strong> The cross vector is noted as an x e.g. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-816b613a4f79d4bf9cb51396a9654120_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/>x<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-c74288aabc0e2ca280d25d92bf1a1ec2_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> <\/p>\n\n\n\n<p>To check whether the two lines <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;\"\/> are coincident,  the z-component of two cross vectors need to be calculated. Both calculate the distance of the points on line <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;\"\/> to <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;\"\/>.<\/p>\n\n\n\n<p><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;\"\/> x <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;\"\/> is the area of the parallelogram <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-2716bb34a982e886fea2a62b6250cc16_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;&#32;&#65;&#67;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"55\" style=\"vertical-align: 0px;\"\/>, dividing it with the length of <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;\"\/> (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-55ca886307a2dc3795f21207e3cf147d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#124;&#65;&#66;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"34\" style=\"vertical-align: -4px;\"\/>) gives the shortest distance of point <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;\"\/> to line <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;\"\/>.<\/p>\n\n\n\n<p><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;\"\/> x <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-eb3250ad029ce1cb1640e0059bc96bfc_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"28\" style=\"vertical-align: 0px;\"\/> gives the area  of the parallelogram <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-a72be80dcc44dd4594d9aaf2e1760200_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#65;&#66;&#32;&#65;&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"56\" style=\"vertical-align: 0px;\"\/> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomasjansen.eu\/wp-content\/uploads\/2019\/12\/wp_lines_coincident-2.svg\" alt=\"\" class=\"wp-image-600\" width=\"641\" height=\"170\"\/><\/figure>\n\n\n\n<p>After dividing with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-55ca886307a2dc3795f21207e3cf147d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#124;&#65;&#66;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"34\" style=\"vertical-align: -4px;\"\/> this is also the shortest distance of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-c10ec9debc8ec5dce4c3c5887557202d_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#68;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"15\" style=\"vertical-align: 0px;\"\/> to line <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;\"\/>. If both distances are small enough the lines are coincident.  <\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-b062a412943b8b378e258238b03122bf_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#100;&#105;&#115;&#116;&#95;&#123;&#97;&#98;&#99;&#125;&#32;&#61;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#66;&#125;&#95;&#120;&middot;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#67;&#125;&#95;&#121;&#32;&#45;&#32;&#32;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#66;&#125;&#95;&#121;&middot;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#67;&#125;&#95;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"238\" style=\"vertical-align: -6px;\"\/> <br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-48c784e234eecedd3114c4a0284f0fc6_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#100;&#105;&#115;&#116;&#95;&#123;&#97;&#98;&#100;&#125;&#32;&#61;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#66;&#125;&#95;&#120;&middot;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#68;&#125;&#95;&#121;&#32;&#45;&#32;&#32;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#66;&#125;&#95;&#121;&middot;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#65;&#68;&#125;&#95;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"241\" style=\"vertical-align: -6px;\"\/>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>To check whether two 2D lines are coincident, the distance of $C$ and $D$ to $AB$ need to be calculated. For a coincident line both need to be (almost) zero. The z component of the cross vector can be used for this quite elegantly. Note: The cross vector is noted as an x e.g. $A$x$B$ [&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":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-geometry"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/359","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=359"}],"version-history":[{"count":5,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":683,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions\/683"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}