Skip to content

Instantly share code, notes, and snippets.

@nicolas-miari
Last active April 20, 2018 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolas-miari/b6400577f0815e53c9ac9c48fa936fac to your computer and use it in GitHub Desktop.
Save nicolas-miari/b6400577f0815e53c9ac9c48fa936fac to your computer and use it in GitHub Desktop.
Tau Support for CGFloat
import CoreGraphics
extension CGFloat {
/// See this: https://tauday.com/tau-manifesto
static var tau: CGFloat {
return 2 * CGFloat.pi
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment