VelocityChangeEfficiency
public struct VelocityChangeEfficiency : Equatable, Hashable
Specifies the ratio by which energy is converted during velocity changes.
-
Creates an instance of
VelocityChangeEfficiency
.Declaration
Swift
public init ( acceleration: Measurement<TTUnitRatio>, deceleration: Measurement<TTUnitRatio> ) throws
Parameters
acceleration
Specifies the efficiency of converting electric energy to kinetic energy when the vehicle accelerates (i.e.,KineticEnergyGained/ElectricEnergyConsumed).
deceleration
Specifies the efficiency of converting kinetic energy to electric energy when the vehicle decelerates (i.e.,ElectricEnergyGained/KineticEnergyLost)
-
Specifies the efficiency of converting electric energy to kinetic energy when the vehicle accelerates (i.e., KineticEnergyGained/ElectricEnergyConsumed).
Declaration
Swift
public let acceleration: Measurement<TTUnitRatio>
-
Specifies the efficiency of converting kinetic energy to electric energy when the vehicle decelerates (i.e., ElectricEnergyGained/KineticEnergyLost)
Declaration
Swift
public let deceleration: Measurement<TTUnitRatio>