Instance Method

initWithCoefficient:

Initializes the unit converter with the specified coefficient.

Declaration

- (instancetype)initWithCoefficient:(double)coefficient;

Parameters

coefficient

The coefficient used in the linear unit conversion calculation.

Return Value

A unit converter initialized with the specified coefficient.

Discussion

Calling this initializer is equivalent to calling initWithCoefficient:constant, passing 0 for the constant parameter.

See Also

Creating Unit Converters

- initWithCoefficient:constant

Initializes the unit converter with the specified coefficient and constant.