CGPoint
public extension CGPoint
Convenience functions for CGPoint.
-
Add the components of a CGPoint and a CGVector
Declaration
Swift
@inlinable static func + (lhs: CGPoint, rhs: CGVector) -> CGPointParameters
lhsthe CGPoint to add
rhsthe CGVector to add
Return Value
new CGPoint representing the sum
-
Add the components of a CGPoint and a CGSize
Declaration
Swift
@inlinable static func + (lhs: CGPoint, rhs: CGSize) -> CGPointParameters
lhsthe CGPoint to add
rhsthe CGSize to add
Return Value
new CGPoint representing the sum
-
Subtract the components of a CGPoint and a CGVector
Declaration
Swift
@inlinable static func - (lhs: CGPoint, rhs: CGVector) -> CGPointParameters
lhsthe CGPoint to subtract
rhsthe CGVector to subtract
Return Value
new CGPoint representing the difference
-
Subtract the components of two CGPoint values
Declaration
Swift
@inlinable static func - (lhs: CGPoint, rhs: CGPoint) -> CGVectorParameters
lhsthe CGPoint to subtract
rhsthe CGPoint to subtract
Return Value
new CGVector representing the difference
Install in Dash
CGPoint Extension Reference