CGFloat

@frozen
public extension CGFloat
  • Returns Boolean that indicates if the value is negative.

    Declaration

    Swift

    var isNeg: Bool { get }
  • Returns Boolean that indicates if the value is positive.

    Declaration

    Swift

    var isPos: Bool { get }
  • Return a new Float object with same value.

    Declaration

    Swift

    var float: Float { get }
  • Return a new CGFloat object with absolute value.

    Declaration

    Swift

    var absolute: CGFloat { get }