{"id":369,"date":"2011-10-05T18:33:58","date_gmt":"2011-10-05T18:33:58","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=369"},"modified":"2022-01-29T12:04:12","modified_gmt":"2022-01-29T11:04:12","slug":"rotate-around-a-point-with-an-offset","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=369","title":{"rendered":"Get point relative to another point with offset and angle (2D)"},"content":{"rendered":"\n\n\n<p>To find a point relative to a point <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-44f78e9b7d6ec57f2027972fd46fa284_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#123;&#79;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> at a distance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-1fa07f072bb7c030830b656d2f9753d6_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#108;&#101;&#110;&#103;&#116;&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"50\" style=\"vertical-align: -4px;\"\/> at angle <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" 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_rotate_point-5.svg\" alt=\"\" class=\"wp-image-595\" width=\"370\" height=\"249\"\/><figcaption>Image<\/figcaption><\/figure>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-a6a671724842104918847f7a5cf330f0_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#95;&#120;&#32;&#61;&#32;&#79;&#95;&#120;&#32;&#43;&#32;&#99;&#111;&#115;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#32;&#42;&#32;&#108;&#101;&#110;&#103;&#116;&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"203\" style=\"vertical-align: -4px;\"\/><br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-jansen.eu\/wp-content\/ql-cache\/quicklatex.com-76b2912e1e1f7f0a86c4f2e6a64f33ea_l3.svg\" class=\"ql-img-inline-formula \" alt=\"&#80;&#95;&#121;&#32;&#61;&#32;&#79;&#95;&#121;&#32;&#43;&#32;&#115;&#105;&#110;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#32;&#42;&#32;&#108;&#101;&#110;&#103;&#116;&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"203\" style=\"vertical-align: -6px;\"\/> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To find a point relative to a point ${O}$ at a distance $length$ at angle $\\alpha$. $P_x = O_x + cos(\\alpha) * length$$P_y = O_y + sin(\\alpha) * length$<\/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":[50,56,64],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-geometry","tag-offset","tag-point","tag-rotate"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/369","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=369"}],"version-history":[{"count":4,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}