{"id":1214,"date":"2023-07-25T12:57:15","date_gmt":"2023-07-25T12:57:15","guid":{"rendered":""},"modified":"2023-07-25T12:57:15","modified_gmt":"2023-07-25T12:57:15","slug":"ul_rectangle","status":"publish","type":"page","link":"https:\/\/fusion360.in.ua\/?page_id=1214","title":{"rendered":"UL_RECTANGLE"},"content":{"rendered":"<div class=\"body_content\" id=\"body-content\">\n<div class=\"head-block\">\n<h1 itemprop=\"name\">UL_RECTANGLE<\/h1>\n<\/div>\n<h2 id=\"data-members\"> \u0427\u043b\u0435\u043d\u0438 \u0434\u0430\u043d\u0438\u0445<\/h2>\n<div class=\"ui-table-wrap\">\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> \u043a\u0443\u0442<\/td>\n<td> \u0440\u0435\u0430\u043b\u044c\u043d\u0438\u0439 (0,0&#8230;359,9)<\/td>\n<\/tr>\n<tr>\n<td> \u0448\u0430\u0440<\/td>\n<td> \u0432\u043d\u0443\u0442\u0440<\/td>\n<\/tr>\n<tr>\n<td> x1, y1<\/td>\n<td> int (\u043d\u0438\u0436\u043d\u0456\u0439 \u043b\u0456\u0432\u0438\u0439 \u043a\u0443\u0442)<\/td>\n<\/tr>\n<tr>\n<td> x2, y2<\/td>\n<td> int (\u043f\u0440\u0430\u0432\u0438\u0439 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u043a\u0443\u0442)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p> \u0414\u0438\u0432\u0456\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0436 UL_BOARD, UL_FOOTPRINT, UL_SHEET, UL_SYMBOL<\/p>\n<p> \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 (x1 y1) \u0456 (x2 y2) \u0437\u0430\u0432\u0436\u0434\u0438 \u0432\u0456\u0434\u043d\u043e\u0441\u044f\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u043e\u0457 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a\u0430 \u043d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u043a\u0443\u0442\u0430.<\/p>\n<p> <em>angle<\/em> \u0432\u0438\u0437\u043d\u0430\u0447\u0430\u0454, \u043d\u0430 \u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0433\u0440\u0430\u0434\u0443\u0441\u0456\u0432 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u043f\u0440\u043e\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u043d\u0438\u043a\u043e\u0432\u043e\u0457 \u0441\u0442\u0440\u0456\u043b\u043a\u0438 \u043d\u0430\u0432\u043a\u043e\u043b\u043e \u0441\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0443. \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 \u0446\u0435\u043d\u0442\u0440\u0443 \u0437\u0430\u0434\u0430\u044e\u0442\u044c\u0441\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430\u043c\u0438 (x1+x2)\/2 \u0456 (y1+y2)\/2.<\/p>\n<h2 id=\"example\"> \u043f\u0440\u0438\u043a\u043b\u0430\u0434<\/h2>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"pln\">board<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">B<\/span> <span class=\"pun\">)<\/span><span class=\"pln\"> <\/span><span class=\"pun\">{<\/span> <span class=\"pln\">B<\/span> <span class=\"pun\">.<\/span> <span class=\"pln\">rectangles<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">R<\/span> <span class=\"pun\">)<\/span><span class=\"pln\"> <\/span><span class=\"pun\">{<\/span> <span class=\"pln\">printf<\/span> <span class=\"pun\">(<\/span> <span class=\"str\">&quot;Rectangle: (%f %f), (%f %f)\n&quot;<\/span> <span class=\"pun\">,<\/span> <span class=\"pln\">u2mm<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">R<\/span> <span class=\"pun\">.<\/span> <span class=\"pln\">x1<\/span> <span class=\"pun\">),<\/span><span class=\"pln\"> u2mm<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">R<\/span> <span class=\"pun\">.<\/span> <span class=\"pln\">y1<\/span> <span class=\"pun\">),<\/span><span class=\"pln\"> u2mm<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">R<\/span> <span class=\"pun\">.<\/span> <span class=\"pln\">x2<\/span> <span class=\"pun\">),<\/span><span class=\"pln\"> u2mm<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">R<\/span> <span class=\"pun\">.<\/span> <span class=\"pln\">y2<\/span> <span class=\"pun\">));<\/span><span class=\"pln\">\r\n    <\/span><span class=\"pun\">}<\/span><span class=\"pln\">\r\n  <\/span><span class=\"pun\">}<\/span><\/code><\/pre>\n<div class=\"related-links\">\n<div class=\"familylinks\">\n<div class=\"parentLink\"> <strong>\u0411\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430:<\/strong> <a class=\"link\" href=\"?p=1171\">\u0442\u0438\u043f\u0438 \u043e\u0431&#39;\u0454\u043a\u0442\u0456\u0432<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041e\u0440\u0456\u0433\u0456\u043d\u0430\u043b \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438:<\/strong> <a class=\"link\" href=https:\/\/help.autodesk.com\/cloudhelp\/ENU\/Fusion-ECAD\/files\/ECD-ULP-RECTANGLE.htm>UL_RECTANGLE<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>UL_RECTANGLE \u0427\u043b\u0435\u043d\u0438 \u0434\u0430\u043d\u0438\u0445 \u043a\u0443\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u0438\u0439 (0,0&#8230;359,9) \u0448\u0430\u0440 \u0432\u043d\u0443\u0442\u0440 x1, y1 int (\u043d\u0438\u0436\u043d\u0456\u0439 \u043b\u0456\u0432\u0438\u0439 \u043a\u0443\u0442) x2, y2 int (\u043f\u0440\u0430\u0432\u0438\u0439 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u043a\u0443\u0442) \u0414\u0438\u0432\u0456\u0442\u044c\u0441\u044f \u0442\u0430\u043a\u043e\u0436 UL_BOARD, UL_FOOTPRINT, UL_SHEET, UL_SYMBOL \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 (x1 y1) \u0456 (x2 y2) \u0437\u0430\u0432\u0436\u0434\u0438 \u0432\u0456\u0434\u043d\u043e\u0441\u044f\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u043e\u0457 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a\u0430 \u043d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u043a\u0443\u0442\u0430. angle \u0432\u0438\u0437\u043d\u0430\u0447\u0430\u0454, \u043d\u0430 \u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0433\u0440\u0430\u0434\u0443\u0441\u0456\u0432 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0438\u043a \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u043f\u0440\u043e\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u043d\u0438\u043a\u043e\u0432\u043e\u0457 \u0441\u0442\u0440\u0456\u043b\u043a\u0438 \u043d\u0430\u0432\u043a\u043e\u043b\u043e \u0441\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0443. \u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1171,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1214"}],"collection":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1214"}],"version-history":[{"count":0,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1214\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1171"}],"wp:attachment":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}