CGFloat

struct CGFloat
  • abs

    SwifterSwift: Absolute of CGFloat value.

    Declaration

    Swift

    public var abs: CGFloat { get }
  • SwifterSwift: Ceil of CGFloat value.

    Declaration

    Swift

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

    Declaration

    Swift

    public var degreesToRadians: CGFloat { get }
  • SwifterSwift: Floor of CGFloat value.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var isNegative: Bool { get }
  • int

    SwifterSwift: Int.

    Declaration

    Swift

    public var int: Int { get }
  • SwifterSwift: Float.

    Declaration

    Swift

    public var float: Float { get }
  • SwifterSwift: Double.

    Declaration

    Swift

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

    Declaration

    Swift

    public var radiansToDegrees: CGFloat { get }
  • 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.