-
The angle value in radians.
Declaration
Swift
public var radians: Double -
The angle value in degrees.
Declaration
Swift
public var degrees: Double { get set } -
Creates an angle with the specified radians.
Declaration
Swift
public init(radians: Double)Parameters
radiansThe radians of the angle.
-
Creates an angle with the specified degrees.
Declaration
Swift
public init(degrees: Double)Parameters
degreesThe degrees of the angle.
-
A zero angle.
Declaration
Swift
public static let zero: Angle -
An angle.
Declaration
Swift
public static func radians(_ radians: Double) -> AngleParameters
radiansThe radians of the angle.
Return Value
A new
Angleinstance with the specified radians. -
An angle.
Declaration
Swift
public static func degrees(_ degrees: Double) -> AngleParameters
degreesThe degrees of the angle.
Return Value
A new
Angleinstance with the specified degrees.
View on GitHub