Interface LinearInstantAccelerationKinematic

    • Method Detail

      • getLinearAcceleration

        @Pure
        default double getLinearAcceleration()
        Returns the linear acceleration of this object in m/s^2.

        The sign of the acceleration indicates if the object is accelerating (positive) or decelerating (negative).

        The replied value is in [-d;a] where:

        • d is the max deceleration value, replied by getMaxLinearDeceleration.
        • a is the max acceleration value, replied by getMaxLinearAcceleration.
        Returns:
        the linear acceleration of this object in m/s^2.
      • getLinearAcceleration

        @Pure
        double getLinearAcceleration​(SpeedUnit unit)
        Returns the linear acceleration of this object in the acceleration corresponding to the given speed unit e.g if the speed unit is m/s the acceleration will be given in m/s^2

        The sign of the acceleration indicates if the object is accelerating (positive) or decelerating (negative).

        The replied value is in [-d;a] where:

        • d is the max deceleration value, replied by getMaxLinearDeceleration.
        • a is the max acceleration value, replied by getMaxLinearAcceleration.
        Parameters:
        unit - the unit in which the speed will be given.
        Returns:
        the linear acceleration of this object in the given unit.