{"id":28786,"date":"2021-12-07T10:06:44","date_gmt":"2021-12-07T15:06:44","guid":{"rendered":"https:\/\/blog.carlrobitaille.org\/?p=28786"},"modified":"2021-12-07T10:06:47","modified_gmt":"2021-12-07T15:06:47","slug":"implicit-equation-fxy0-of-a-triangle-with-arbitrary-vertices","status":"publish","type":"post","link":"https:\/\/blog.carlrobitaille.org\/?p=28786","title":{"rendered":"Implicit equation f(x,y)=0 of a triangle with arbitrary vertices"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">This is the implicit equation f(x,y)=0 of a triangle with arbitrary verts, that actually computes the exact Euclidean distance from (x,y) to the triangle.<br><br>It uses min{} and max{}, which are defined in terms of the absolute value |x|. Code: <a href=\"https:\/\/t.co\/Tq0QpIjFiI\">https:\/\/t.co\/Tq0QpIjFiI<\/a> <a href=\"https:\/\/t.co\/Q8ZJQS0fwX\">pic.twitter.com\/Q8ZJQS0fwX<\/a><\/p>&mdash; inigo quilez (@iquilezles) <a href=\"https:\/\/twitter.com\/iquilezles\/status\/1466553045739663360?ref_src=twsrc%5Etfw\">December 2, 2021<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,19],"tags":[],"class_list":["post-28786","post","type-post","status-publish","format-standard","hentry","category-infographie","category-mathematiques"],"_links":{"self":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/28786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28786"}],"version-history":[{"count":1,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/28786\/revisions"}],"predecessor-version":[{"id":28787,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/28786\/revisions\/28787"}],"wp:attachment":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}