Kilometer
public struct Kilometer : NumericType, CustomStringConvertible
The Kilometer is a unit of distance.
-
The Meter value
Declaration
Swift
public let value: Double
-
Creates a new Kilometer instance.
Declaration
Swift
public init(_ value: Double)
Parameters
value
The value of Kilometer.
-
Transform the current Kilometer in Meter
Declaration
Swift
public var inMeters: Meter { get }
-
Declaration
Swift
public var description: String { get }