CGPoint
public extension CGPoint
-
Adds a vector to a point
Declaration
Swift
static func + (lhs: CGPoint, rhs: CGVector) -> CGPointParameters
lhsCGPoint
rhsCGVector
Return Value
Translated point
-
Adds two points together, by adding their components.
Declaration
Swift
static func + (lhs: CGPoint, rhs: CGPoint) -> CGPointParameters
lhsCGPoint
rhsCGPoint
Return Value
Added point
-
Subtracts two points from each other, by subtracting their components.
Declaration
Swift
static func - (lhs: CGPoint, rhs: CGPoint) -> CGPointParameters
lhsCGPoint
rhsCGPoint
Return Value
Subtracted point
-
Adds a value to both components of a point
Declaration
Swift
static func + (lhs: CGPoint, value: CGFloat) -> CGPointParameters
lhsPoint
valueValue
Return Value
Moved point
View on GitHub
Install in Dash