CGPoint
extension CGPoint
extension CGPoint: SpringInterpolatable, VelocityProviding
-
Returns a point value whose
x/ycomponents are rounded to the nearest pixel boundary, taking into account the device’s display scale.Declaration
Swift
public var scaledIntegral: CGPoint { get } -
The absolute, positive distance another
CGPoint.Declaration
Swift
public func distance(to point: CGPoint) -> CGFloatParameters
toThe other point.
-
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)
CGPoint Extension Reference