Parsec
public struct Parsec : NumericType, CustomStringConvertible
The Parsec is a unit of distance.
-
The Parsec value
Declaration
Swift
public let value: Double
-
Creates a new Parsec instance.
Declaration
Swift
public init(_ value: Double)
Parameters
value
The value of Parsec.
-
Transform the current Parsec in AstronomicalUnits
Declaration
Swift
public var inAstronomicalUnits: AstronomicalUnit { get }
-
Declaration
Swift
public var description: String { get }
-
Returns the parallax value corresponding to the current distance.
Declaration
Swift
public func parallax() -> ArcSecond
Return Value
The parallax value.