Skip to content

Instantly share code, notes, and snippets.

@yarneo
Last active January 3, 2019 21:47
Show Gist options
  • Save yarneo/092d3d7b88eb4316f2d17e445694a863 to your computer and use it in GitHub Desktop.
Save yarneo/092d3d7b88eb4316f2d17e445694a863 to your computer and use it in GitHub Desktop.
- (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