CGPoint
public extension CGPoint
-
Converts a
CGPointto an internalScreenCoordinatetype.Declaration
Swift
var screenCoordinate: ScreenCoordinate { get } -
Interpolate a point along a fraction of a line between two points.
Declaration
Swift
static func interpolate(origin: CGPoint, destination: CGPoint, fraction: CGFloat) -> CGPointParameters
originThe starting point for the interpolation.
destinationThe ending point for the interpolation.
fractionA value between 0 and 1 that represents the fraction to interpolate to. A value of 0 represents the start position, and a value of 1 represents the end position.
Return Value
A
CGPointthat represents the fractional point along the path between the source and destination points.
CGPoint Extension Reference