CGFloat

public extension CGFloat

This makes it easier to convert between Degrees and Radians.

  • Declaration

    Swift

    var radians: CGFloat { get }

    Return Value

    a float (in degrees), as Radians

  • Declaration

    Swift

    var degrees: CGFloat { get }

    Return Value

    a float (in Radians), as degrees