CGPoint

public extension CGPoint
extension CGPoint: SpringInterpolatable, VelocityProviding
  • Returns a point value whose x/y components are rounded to the nearest pixel boundary, taking into account the device’s display scale.

    Declaration

    Swift

    var scaledIntegral: CGPoint { get }
  • The absolute, positive distance another CGPoint.

    Declaration

    Swift

    func distance(to point: CGPoint) -> CGFloat

    Parameters

    to

    The other point.

Operators

  • Declaration

    Swift

    static func + (lhs: CGPoint, rhs: CGPoint) -> CGPoint
  • Declaration

    Swift

    static func - (lhs: CGPoint, rhs: CGPoint) -> CGPoint
  • Declaration

    Swift

    public typealias ValueType = CGPoint
  • Declaration

    Swift

    public typealias VelocityType = CGPoint
  • Declaration

    Swift

    public static func updateValue(spring: Spring, value: CGPoint, target: CGPoint, velocity: CGPoint, dt: TimeInterval) -> (value: CGPoint, velocity: CGPoint)