CGFloat
extension CGFloat
-
rad. to degrees
Declaration
Swift
var degrees: CGFloat { get }
-
to rad.
Declaration
Swift
var torad: CGFloat { get }
Parameters
f
degree
Return Value
postion
-
Flip rotation
Declaration
Swift
static var flipRotation: CGFloat { get }
-
Circular segment height for radius and degree
Declaration
Swift
static func circularSegmentHeight(radius: CGFloat, from degree: CGFloat) -> CGFloat
Parameters
radius
degree
degree
radius
Return Value
height
-
Radius calculation
Declaration
Swift
static func radius(circularSegmentHeight: CGFloat, from degree: CGFloat) -> CGFloat
Parameters
circularSegmentHeight
Circular segment height
degree
degree
Return Value
radius