https://github.com/520coding/ftroulette
ios轮盘,圆形指示器
https://github.com/520coding/ftroulette
cocoapods demo ios objective-c roulette xcode
Last synced: 3 months ago
JSON representation
ios轮盘,圆形指示器
- Host: GitHub
- URL: https://github.com/520coding/ftroulette
- Owner: 520coding
- License: mit
- Created: 2020-07-27T09:10:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T07:09:07.000Z (almost 5 years ago)
- Last Synced: 2025-04-11T02:03:22.258Z (3 months ago)
- Topics: cocoapods, demo, ios, objective-c, roulette, xcode
- Language: Objective-C
- Homepage:
- Size: 9.04 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FTroulette
[](https://travis-ci.org/[email protected]/FTroulette)
[](https://cocoapods.org/pods/FTroulette)
[](https://github.com/520coding/FTroulette/blob/master/LICENSE)
[](https://cocoapods.org/pods/FTroulette)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
FTroulette is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'FTroulette'
```## Principle
1.以触碰点P与圆心O1为起始边,对±θ角范围内的刻度线进行偏移。角θ可根据三角形O1O2A,利用余弦定理,已知三边求角:a=r,b=R,c=R-d 代入即可求得α,即θ

2.原刻度线ab,偏移后得到新刻度线a'b',新刻度线的位置L,可根据三角形O1O2a',利用余弦定理结合完全平方公式,已知两边和一角求第三边:∠γ=∠α-∠β,a=R-d,c=r 代入即可求得b,即L

## Demo
注意:如遇到图片加载缓慢或失败,请参照——[解决办法](https://blog.csdn.net/u011583927/article/details/104384169?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param)
## Author
[email protected], [email protected]
## License
FTroulette is available under the MIT license. See the LICENSE file for more info.