FloatingPoint

extension FloatingPoint

Extension that converts a FloatingPoint to and from radians and degrees

  • Converts a FloatingPoint type to radians

    Declaration

    Swift

    public var toRadians: Self { get }
  • Converts a FloatingPoint type to degrees

    Declaration

    Swift

    public var toDegrees: Self { get }