CGFloat
-
Return the central value of CGFloat.
Declaration
Swift
public var center: CGFloat
-
Undocumented
Declaration
Swift
public func toRadians() -> CGFloat
-
Converts degrees to radians
Declaration
Swift
public func degreesToRadians() -> CGFloat
-
Undocumented
Declaration
Swift
public mutating func toRadiansInPlace()
-
Converts angle degrees to radians.
Declaration
Swift
public static func degreesToRadians(_ angle: CGFloat) -> CGFloat
-
Converts radians to degrees.
Declaration
Swift
public func radiansToDegrees() -> CGFloat
-
Converts angle radians to degrees mutable version.
Declaration
Swift
public mutating func toDegreesInPlace()
-
Converts angle radians to degrees static version.
Declaration
Swift
public static func radiansToDegrees(_ angleInDegrees: CGFloat) -> CGFloat
-
Returns a random floating point number between 0.0 and 1.0, inclusive.
Declaration
Swift
public static func random() -> CGFloat
-
Returns a random floating point number in the range min…max, inclusive.
Declaration
Swift
public static func random(within: Range<CGFloat>) -> CGFloat
-
Returns a random floating point number in the range min…max, inclusive.
Declaration
Swift
public static func random(within: ClosedRange<CGFloat>) -> CGFloat
-
Returns the shortest angle between two angles. The result is always between -π and π.
Declaration
Swift
public static func shortestAngleInRadians(from first: CGFloat, to second: CGFloat) -> CGFloat