Class

NSUnitSpeed

A unit of measure for speed.

Declaration

@interface NSUnitSpeed : NSDimension

Overview

You typically use instances of NSUnitSpeed 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 NSUnitSpeed class defines its base unit as metersPerSecond, and provides the following units, which are initialized using NSUnitConverterLinear converters with the specified coefficients:

Name

Method

Symbol

Coefficient

Meters Per Second

metersPerSecond

m/s

1.0

Kilometers Per Hour

kilometersPerHour

km/h

0.277778

Miles Per Hour

milesPerHour

mph

0.44704

Knots

knots

kn

0.514444

Topics

Accessing the Base Unit

+ baseUnit

Returns the base unit of speed. Equal to metersPerSecond.

Accessing Predefined Units

metersPerSecond

Returns the meter per second unit of speed.

kilometersPerHour

Returns the kilometers per hour unit of speed.

milesPerHour

Returns the miles per hour unit of speed.

knots

Returns the knots unit of speed.

Relationships

Inherits From

Conforms To

See Also

Time and Motion

NSUnitAcceleration

A unit of measure for acceleration.

NSUnitDuration

A unit of measure for duration of time.

NSUnitFrequency

A unit of measure for frequency.