AltitudeChangeEfficiency
public struct AltitudeChangeEfficiency : Equatable, Hashable
Specifies the ratio by which energy is converted for altitude changes.
-
Creates an instance of
AltitudeChangeEfficiency.Throws
VehicleError.invalidVehicleSnapshotif uphill or downhill efficiency are negative.Throws
VehicleError.invalidVehicleSnapshotif the product of uphill or downhill efficiency is greated than zero.Declaration
Swift
public init ( uphill: Measurement<TTUnitRatio>, downhill: Measurement<TTUnitRatio> ) throwsParameters
uphillSpecifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation, (i.e., PotentialEnergyGained/ChemicalEnergyConsumed).
downhillSpecifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation, (i.e., ChemicalEnergySaved/PotentialEnergyLost).
-
Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation, (i.e., PotentialEnergyGained/ChemicalEnergyConsumed).
Declaration
Swift
public let uphill: Measurement<TTUnitRatio> -
Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation, (i.e.,ChemicalEnergySaved/PotentialEnergyLost).
Declaration
Swift
public let downhill: Measurement<TTUnitRatio>
TomTom SDK for iOS (0.53.1)
AltitudeChangeEfficiency