LinearVelocityUnit
Unit representing linear velocity (distance per time).
Common examples:
Meters per second (m/s)
Miles per hour (mph)
Kilometers per hour (km/h)
Feet per second (ft/s)
Parameters
the distance unit (numerator)
the time unit (denominator)
Properties
The base PerUnit using the base units of both numerator and denominator. For example, Miles per Hour would have a basePerUnit of Meters per Second.
The base unit for this unit's measurement system. This is found by traversing the parent chain until reaching a unit with no parent. For example:
Functions
Checks if this unit is equivalent to another one. Equivalence is determined by both units having the same base type and treat the same base unit magnitude as the same magnitude in their own units, to within Measure.EQUIVALENCE_THRESHOLD.
Converts a value in terms of base units to a value in terms of this unit.
Checks if this unit is the base unit for its own system of measurement.
Creates a new immutable measurement of the given magnitude in terms of this unit. Implementations are strongly recommended to sharpen the return type to a unit-specific measurement implementation.
Creates a new immutable measurement of the given magnitude in terms of this unit's base unit. Implementations are strongly recommended to sharpen the return type to a unit-specific measurement implementation.
Combines this velocity unit with a unit of time to create an acceleration unit.
Converts a value in terms of this unit to a value in terms of the base unit.