Radian
public struct Radian : NumericType, CustomStringConvertible
The Radian is a unit of angle.
-
The Radian value
Declaration
Swift
public let value: Double
-
Creates a new Radian instance.
Declaration
Swift
public init(_ value: Double)
Parameters
value
The value of Radian.
-
Transform the current Radian in Degrees
Declaration
Swift
public var inDegrees: Degree { get }
-
Transform the current Radian in Hours
Declaration
Swift
public var inHours: Hour { get }
-
Returns self reduced to 0..<2PI range
Declaration
Swift
public var reduced: Radian { get }
-
Returns self reduced to -pi..<pi range (around 0)
Declaration
Swift
public var reduced0: Radian { get }
-
Declaration
Swift
public var description: String { get }