CGPoint
public extension CGPoint
-
Adds a vector to a point
Declaration
Swift
static func + (lhs: CGPoint, rhs: CGVector) -> CGPoint
Parameters
lhs
CGPoint
rhs
CGVector
Return Value
Translated point
-
Adds two points together, by adding their components.
Declaration
Swift
static 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
static 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
static func + (lhs: CGPoint, value: CGFloat) -> CGPoint
Parameters
lhs
Point
value
Value
Return Value
Moved point