CGPoint
-
Undocumented
Declaration
Swift
public func isNegative() -> ScrollDirection
-
Constructor from CGVector
Declaration
Swift
public init(vector: CGVector)
-
Constructor from CGFloat
Declaration
Swift
public init(angle: CGFloat)
-
Adds two CGPoints.
Declaration
Swift
public static func + (this: CGPoint, that: CGPoint) -> CGPoint
-
Subtracts two CGPoints.
Declaration
Swift
public static func - (left: CGPoint, right: CGPoint) -> CGPoint
-
Multiplies a CGPoint with a scalar CGFloat.
Declaration
Swift
public static func * (point: CGPoint, scalar: CGFloat) -> CGPoint
-
Calculates the distance between two CG Points.
Declaration
Swift
public static func distance(from: CGPoint, to: CGPoint) -> CGFloat
-
Normalizes the vector described by the CGPoint to length 1.0 and returns the result as a new CGPoint.
Declaration
Swift
public func normalized() -> CGPoint
-
/ Returns the angle represented by the point.
Declaration
Swift
public var angle: CGFloat
-
/ Returns the dot product of two vectors represented by points
Declaration
Swift
public static func dotProduct(this: CGPoint, that: CGPoint) -> CGFloat
-
Performs a linear interpolation between two CGPoint values.
Declaration
Swift
public static func linearInterpolation(startPoint: CGPoint, endPoint: CGPoint, interpolationParam: CGFloat) -> CGPoint