Double

public extension Double

This makes it easier to convert between Degrees and Radians.

  • Declaration

    Swift

    var radians: Double { get }

    Return Value

    a float (in degrees), as Radians

  • Declaration

    Swift

    var degrees: Double { get }

    Return Value

    a float (in Radians), as degrees