Last active
January 3, 2019 21:47
-
-
Save yarneo/092d3d7b88eb4316f2d17e445694a863 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (MDCPathGenerator *)pathGeneratorForCornerWithAngle:(CGFloat)angle | |
andCut:(CGFloat)cut { | |
MDCPathGenerator *path = | |
[MDCPathGenerator pathGeneratorWithStartPoint:CGPointMake(0, cut)]; | |
[path addLineToPoint:CGPointMake(MDCSin(angle) * cut, MDCCos(angle) * cut)]; | |
return path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment