Functions
The following functions are available globally.
-
Adds two points together, by adding their components.
Declaration
Swift
public func + (lhs: CGPoint, rhs: CGPoint) -> CGPoint
Parameters
lhs
CGPoint
rhs
CGPoint
Return Value
Added point
-
Subtracts two points from each other, by subtracting their components.
Declaration
Swift
public func - (lhs: CGPoint, rhs: CGPoint) -> CGPoint
Parameters
lhs
CGPoint
rhs
CGPoint
Return Value
Subtracted point
-
Adds a value to both components of a point
Declaration
Swift
public func + (lhs: CGPoint, value: CGFloat) -> CGPoint
Parameters
lhs
Point
value
Value
Return Value
Moved point