initWithCoefficient:constant

Initializes the unit converter with the specified coefficient and constant.

Declaration

- (instancetype)initWithCoefficient:(double)coefficient constant:(double)constant

Parameters

coefficient

The coefficient used in the linear unit conversion calculation.

constant

The constant used in the linear unit conversion calculation.

Return Value

A unit converter initialized with the specified coefficient and constant.

Overview

This is the designated initializer.

See Also

Creating Unit Converters

- initWithCoefficient:

Initializes the unit converter with the specified coefficient.