VelocityChangeEfficiency

public struct VelocityChangeEfficiency : Equatable, Hashable

Specifies the ratio by which energy is converted during velocity changes.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Declaration

    Swift

    public init
        (
            acceleration: Float,
            deceleration: Float
        ) 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)

Public

  • Specifies the efficiency of converting electric energy to kinetic energy when the vehicle accelerates (i.e., KineticEnergyGained/ElectricEnergyConsumed).

    Declaration

    Swift

    public let acceleration: Float
  • Specifies the efficiency of converting kinetic energy to electric energy when the vehicle decelerates (i.e., ElectricEnergyGained/KineticEnergyLost)

    Declaration

    Swift

    public let deceleration: Float