UnitSpeed
A unit of measure for speed.
Declaration
class UnitSpeedOverview
You typically use instances of UnitSpeed to represent specific quantities of speed using the NSMeasurement class.
Speed
Speed is the magnitude of velocity, or the rate of change of position. Speed can be expressed by SI derived units in terms of meters per second (m/s), and is also commonly expressed in terms of kilometers per hour (km/h) and miles per hour (mph).
The UnitSpeed class defines its baseUnit() as metersPerSecond, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients:
Name | Method | Symbol | Coefficient |
|---|---|---|---|
Meters Per Second | m/s |
| |
Kilometers Per Hour | km/h |
| |
Miles Per Hour | mph |
| |
Knots | kn |
|
The base unit is metersPerSecond and is accessed via baseUnit() on the Dimension protocol.