Title: Matrix的前乘和后乘不太明白? · Issue #79 · GcsSloop/AndroidNote · GitHub
Open Graph Title: Matrix的前乘和后乘不太明白? · Issue #79 · GcsSloop/AndroidNote
X Title: Matrix的前乘和后乘不太明白? · Issue #79 · GcsSloop/AndroidNote
Description: measure.getPosTan(measure.getLength() * currentValue, pos, tan); // 获取当前位置的坐标以及趋势 mMatrix.reset(); // 重置Matrix float degrees = (float) (Math.atan2(tan[1], tan[0]) * 180.0 / Math.PI); // 计算图片旋转角度 mMatrix.postRotate(degrees, mBitmap.getWid...
Open Graph Description: measure.getPosTan(measure.getLength() * currentValue, pos, tan); // 获取当前位置的坐标以及趋势 mMatrix.reset(); // 重置Matrix float degrees = (float) (Math.atan2(tan[1], tan[0]) * 180.0 / Math.PI); // 计算图片旋转角度 mM...
X Description: measure.getPosTan(measure.getLength() * currentValue, pos, tan); // 获取当前位置的坐标以及趋势 mMatrix.reset(); // 重置Matrix float degrees = (float) (Math.atan2(tan[1], tan[0]) * 180.0 / Math.PI); // 计算图片旋转角度 mM...
Opengraph URL: https://github.com/GcsSloop/AndroidNote/issues/79
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Matrix的前乘和后乘不太明白?","articleBody":"measure.getPosTan(measure.getLength() * currentValue, pos, tan); // 获取当前位置的坐标以及趋势\r\n\r\nmMatrix.reset(); // 重置Matrix\r\nfloat degrees = (float) (Math.atan2(tan[1], tan[0]) * 180.0 / Math.PI); // 计算图片旋转角度\r\n\r\nmMatrix.postRotate(degrees, mBitmap.getWidth() / 2, mBitmap.getHeight() / 2); // 旋转图片\r\nmMatrix.postTranslate(pos[0] - mBitmap.getWidth() / 2, pos[1] - mBitmap.getHeight() / 2); // 将图片绘制中心调整到与当前点重合\r\n这是第一种方案,\r\n// 获取当前位置的坐标以及趋势的矩阵\r\nmeasure.getMatrix(measure.getLength() * currentValue, mMatrix, PathMeasure.TANGENT_MATRIX_FLAG | PathMeasure.POSITION_MATRIX_FLAG);\r\n\r\nmMatrix.preTranslate(-mBitmap.getWidth() / 2, -mBitmap.getHeight() / 2); // \u003c-- 将图片绘制中心调整到与当前点重合(注意:此处是前乘pre)\r\n这是第二种方案,为什么第一种是用的后乘,第二种用的是前乘,具体看了那个matrix的原理还是不太明白?可以具体讲讲吗?","author":{"url":"https://github.com/iamdurui","@type":"Person","name":"iamdurui"},"datePublished":"2017-06-19T10:50:16Z","url":"https://github.com/GcsSloop/AndroidNote/issues/79"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:63e639ba-2ed2-f6a5-5fde-0f24c7f571a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB4C:10FCEE:337E57:46C505:6AFC4F34 |
| html-safe-nonce | c8b141ea71d267bced27a94faba9e678e86b0ee950ec1a58c7a39de8f706df56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjRDOjEwRkNFRTozMzdFNTc6NDZDNTA1OjZBRkM0RjM0IiwidmlzaXRvcl9pZCI6IjU3MzgyMzg3NzkyNzM3OTMzMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e9fd1479e27049c981b87a05652b7fc5729845668298b0a95ba1386c5f753db |
| hovercard-subject-tag | issue:236851465 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GcsSloop/AndroidNote/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb839e271240d5f30b46c202d299fd8978e70b03722949fa7162335db702840e/GcsSloop/AndroidNote/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb839e271240d5f30b46c202d299fd8978e70b03722949fa7162335db702840e/GcsSloop/AndroidNote/issues/79 |
| og:image:alt | measure.getPosTan(measure.getLength() * currentValue, pos, tan); // 获取当前位置的坐标以及趋势 mMatrix.reset(); // 重置Matrix float degrees = (float) (Math.atan2(tan[1], tan[0]) * 180.0 / Math.PI); // 计算图片旋转角度 mM... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iamdurui |
| hostname | github.com |
| expected-hostname | github.com |
| None | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GcsSloop/AndroidNote git https://github.com/GcsSloop/AndroidNote.git |
| octolytics-dimension-user_id | 9796998 |
| octolytics-dimension-user_login | GcsSloop |
| octolytics-dimension-repository_id | 49030451 |
| octolytics-dimension-repository_nwo | GcsSloop/AndroidNote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49030451 |
| octolytics-dimension-repository_network_root_nwo | GcsSloop/AndroidNote |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width