CGPoint

public extension CGPoint
  • fmt

    Returns a pair of “%.2f” formatted strings

    Declaration

    Swift

    var fmt: String { get }

Arithmetic operations between CG structures and scalars

  • Multiplies a CGPoint by a CGFloat

    Declaration

    Swift

    static func * (size: CGPoint, scalar: CGFloat) -> CGPoint
  • Multiplies a CGPoint by a Double

    Declaration

    Swift

    static func * (size: CGPoint, scalar: Double) -> CGPoint
  • Divides a CGPoint by a CGFloat

    Declaration

    Swift

    static func / (size: CGPoint, scalar: CGFloat) -> CGPoint
  • Divides a CGPoint by a Double

    Declaration

    Swift

    static func / (size: CGPoint, scalar: Double) -> CGPoint