CGFloat

  • abs

    SwifterSwift: Absolute of CGFloat value.

    Declaration

    Swift

    public var abs: CGFloat
  • SwifterSwift: Ceil of CGFloat value.

    Declaration

    Swift

    public var ceil: CGFloat
  • SwifterSwift: Radian value of degree input.

    Declaration

    Swift

    public var degreesToRadians: CGFloat
  • SwifterSwift: Floor of CGFloat value.

    Declaration

    Swift

    public var floor: CGFloat
  • SwifterSwift: Check if CGFloat is positive.

    Declaration

    Swift

    public var isPositive: Bool
  • SwifterSwift: Check if CGFloat is negative.

    Declaration

    Swift

    public var isNegative: Bool
  • int

    SwifterSwift: Int.

    Declaration

    Swift

    public var int: Int
  • SwifterSwift: Float.

    Declaration

    Swift

    public var float: Float
  • SwifterSwift: Double.

    Declaration

    Swift

    public var double: Double
  • SwifterSwift: Degree value of radian input.

    Declaration

    Swift

    public var radiansToDegrees: CGFloat
  • SwifterSwift: Random CGFloat between two CGFloat values.

    Declaration

    Swift

    public static func randomBetween(min: CGFloat, max: CGFloat) -> CGFloat

    Parameters

    min

    minimum number to start random from.

    max

    maximum number random number end before.

    Return Value

    random CGFloat between two CGFloat values.