{"id":20499993,"url":"https://github.com/520coding/ftroulette","last_synced_at":"2025-04-13T18:52:25.883Z","repository":{"id":56910867,"uuid":"282847645","full_name":"520coding/FTroulette","owner":"520coding","description":"ios轮盘，圆形指示器","archived":false,"fork":false,"pushed_at":"2020-08-31T07:09:07.000Z","size":9482,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T02:03:22.258Z","etag":null,"topics":["cocoapods","demo","ios","objective-c","roulette","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/520coding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-27T09:10:02.000Z","updated_at":"2024-10-31T08:35:09.000Z","dependencies_parsed_at":"2022-08-20T20:20:32.544Z","dependency_job_id":null,"html_url":"https://github.com/520coding/FTroulette","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/520coding%2FFTroulette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/520coding%2FFTroulette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/520coding%2FFTroulette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/520coding%2FFTroulette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/520coding","download_url":"https://codeload.github.com/520coding/FTroulette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248765994,"owners_count":21158296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","demo","ios","objective-c","roulette","xcode"],"created_at":"2024-11-15T18:19:25.900Z","updated_at":"2025-04-13T18:52:25.838Z","avatar_url":"https://github.com/520coding.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FTroulette\n\n[![CI Status](https://img.shields.io/travis/1085192695@qq.com/FTroulette.svg?style=flat)](https://travis-ci.org/1085192695@qq.com/FTroulette)\n[![Version](https://img.shields.io/cocoapods/v/FTroulette.svg?style=flat)](https://cocoapods.org/pods/FTroulette)\n[![License](https://img.shields.io/cocoapods/l/FTroulette.svg?style=flat)](https://github.com/520coding/FTroulette/blob/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/FTroulette.svg?style=flat)](https://cocoapods.org/pods/FTroulette)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nFTroulette is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'FTroulette'\n```\n\n## Principle\n\n1.以触碰点P与圆心O1为起始边，对±θ角范围内的刻度线进行偏移。角θ可根据三角形O1O2A，利用余弦定理，已知三边求角：a=r，b=R，c=R-d 代入即可求得α，即θ\n\n![Image text](https://github.com/520coding/FTroulette/blob/master/ScreenShots/%E4%BD%99%E5%BC%A6%E5%AE%9A%E7%90%86.svg)\n\n\u003cimg src=\"https://github.com/520coding/FTroulette/blob/master/ScreenShots/roulette1.png\" /\u003e\u003cbr/\u003e\n\n2.原刻度线ab，偏移后得到新刻度线a'b'，新刻度线的位置L，可根据三角形O1O2a'，利用余弦定理结合完全平方公式，已知两边和一角求第三边：∠γ=∠α-∠β，a=R-d，c=r 代入即可求得b，即L\n\n![Image text](https://github.com/520coding/FTroulette/blob/master/ScreenShots/%E4%BD%99%E5%BC%A6%E5%AE%9A%E7%90%862.svg)\n\n\u003cimg src=\"https://github.com/520coding/FTroulette/blob/master/ScreenShots/roulette2.png\" /\u003e\u003cbr/\u003e\n\n## Demo\n![Image text](https://github.com/520coding/FTroulette/blob/master/ScreenShots/demo.gif)\n\n注意：如遇到图片加载缓慢或失败，请参照——[解决办法](https://blog.csdn.net/u011583927/article/details/104384169?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param\u0026depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param)\u003cbr /\u003e\n\n## Author\n\n794751446@qq.com, 1085192695@qq.com\n\n## License\n\nFTroulette is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F520coding%2Fftroulette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F520coding%2Fftroulette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F520coding%2Fftroulette/lists"}