Package edu.wpi.first.units.measure
Interface Acceleration<D extends Unit>
- All Superinterfaces:
Comparable<Measure<AccelerationUnit<D>>>
,Measure<AccelerationUnit<D>>
- All Known Implementing Classes:
ImmutableAcceleration
,MutAcceleration
-
Field Summary
Fields inherited from interface edu.wpi.first.units.Measure
EQUIVALENCE_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptiondefault AccelerationUnit<D>
baseUnit()
A convenience method to get the base unit of the measurement.copy()
Returns an immutable copy of this measure.default Acceleration<D>
div
(double divisor) Divides this measure by a unitless scalar and returns the result.default Per<AccelerationUnit<D>,
AccelerationUnit<?>> div
(Acceleration<?> divisor) Divides this measure by a generic acceleration and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngleUnit> Divides this measure by an angle and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularAccelerationUnit> div
(AngularAcceleration divisor) Divides this measure by an angular acceleration and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularMomentumUnit> div
(AngularMomentum divisor) Divides this measure by an angular momentum and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularVelocityUnit> div
(AngularVelocity divisor) Divides this measure by an angular velocity and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
CurrentUnit> Divides this measure by an electric current and returns the result in the most appropriate unit.default Acceleration<D>
div
(Dimensionless divisor) Divides this measure by a dimensionless scalar and returns the result.default Per<AccelerationUnit<D>,
DistanceUnit> Divides this measure by a distance and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
EnergyUnit> Divides this measure by an energy and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
ForceUnit> Divides this measure by a force and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
FrequencyUnit> Divides this measure by a frequency and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearAccelerationUnit> div
(LinearAcceleration divisor) Divides this measure by a linear acceleration and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearMomentumUnit> div
(LinearMomentum divisor) Divides this measure by a linear momentum and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearVelocityUnit> div
(LinearVelocity divisor) Divides this measure by a linear velocity and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MassUnit> Divides this measure by a mass and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MomentOfInertiaUnit> div
(MomentOfInertia divisor) Divides this measure by a moment of inertia and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MultUnit<?, ?>> Divides this measure by a generic multiplication and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
PerUnit<?, ?>> Divides this measure by a generic ratio and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
PowerUnit> Divides this measure by a power and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
ResistanceUnit> div
(Resistance divisor) Divides this measure by a resistance and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
TemperatureUnit> div
(Temperature divisor) Divides this measure by a temperature and returns the result in the most appropriate unit.default Velocity<AccelerationUnit<D>>
Divides this measure by a time and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
TorqueUnit> Divides this measure by a torque and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
VelocityUnit<?>> Divides this measure by a generic velocity and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
VoltageUnit> Divides this measure by a voltage and returns the result in the most appropriate unit.default Acceleration<D>
divide
(double divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
AccelerationUnit<?>> divide
(Acceleration<?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
AngleUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
AngularAccelerationUnit> divide
(AngularAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
AngularMomentumUnit> divide
(AngularMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
AngularVelocityUnit> divide
(AngularVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
CurrentUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Acceleration<D>
divide
(Dimensionless divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
DistanceUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
EnergyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
ForceUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
FrequencyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
LinearAccelerationUnit> divide
(LinearAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
LinearMomentumUnit> divide
(LinearMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
LinearVelocityUnit> divide
(LinearVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
MassUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
MomentOfInertiaUnit> divide
(MomentOfInertia divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
MultUnit<?, ?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
PerUnit<?, ?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
PowerUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
ResistanceUnit> divide
(Resistance divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
TemperatureUnit> divide
(Temperature divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Velocity<AccelerationUnit<D>>
Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
TorqueUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
VelocityUnit<?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<AccelerationUnit<D>,
VoltageUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default double
in
(AccelerationUnit<D> unit) Converts this measure to a measure with a different unit of the same type, eg minutes to seconds.default Acceleration<D>
minus
(Measure<? extends AccelerationUnit<D>> other) Subtracts another measure of the same unit type from this one.default MutAcceleration<D>
Returns a mutable copy of this measure.default Acceleration<D>
negate()
Deprecated, for removal: This API element is subject to removal in a future version.use unaryMinus() instead.static <D extends Unit>
Acceleration<D>ofBaseUnits
(double baseUnitMagnitude, AccelerationUnit<D> unit) static <D extends Unit>
Acceleration<D>ofRelativeUnits
(double magnitude, AccelerationUnit<D> unit) default Per<AccelerationUnit<D>,
AccelerationUnit<?>> per
(AccelerationUnit<?> divisorUnit) Divides this measure by an acceleration unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngleUnit> Divides this measure by an angle unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularAccelerationUnit> per
(AngularAccelerationUnit divisorUnit) Divides this measure by an angular acceleration unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularMomentumUnit> per
(AngularMomentumUnit divisorUnit) Divides this measure by an angular momentum unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
AngularVelocityUnit> per
(AngularVelocityUnit divisorUnit) Divides this measure by an angular velocity unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
CurrentUnit> per
(CurrentUnit divisorUnit) Divides this measure by a unit of electric current and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
DistanceUnit> per
(DistanceUnit divisorUnit) Divides this measure by a distance unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
EnergyUnit> per
(EnergyUnit divisorUnit) Divides this measure by an energy unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
ForceUnit> Divides this measure by a force unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
FrequencyUnit> per
(FrequencyUnit divisorUnit) Divides this measure by a frequency unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearAccelerationUnit> per
(LinearAccelerationUnit divisorUnit) Divides this measure by a linear acceleration unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearMomentumUnit> per
(LinearMomentumUnit divisorUnit) Divides this measure by a linear momentum unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
LinearVelocityUnit> per
(LinearVelocityUnit divisorUnit) Divides this measure by a linear velocity unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MassUnit> Divides this measure by a mass unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MomentOfInertiaUnit> per
(MomentOfInertiaUnit divisorUnit) Divides this measure by a moment of inertia unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
MultUnit<?, ?>> Divides this measure by a generic compound unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
PerUnit<?, ?>> Divides this measure by a generic ratio unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
PowerUnit> Divides this measure by a power unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
ResistanceUnit> per
(ResistanceUnit divisorUnit) Divides this measure by a resistance unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
TemperatureUnit> per
(TemperatureUnit divisorUnit) Divides this measure by a temperature unit and returns the result in the most appropriate unit.default Velocity<AccelerationUnit<D>>
Divides this measure by a time period and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
TorqueUnit> per
(TorqueUnit divisorUnit) Divides this measure by a torque unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
VelocityUnit<?>> per
(VelocityUnit<?> divisorUnit) Divides this measure by a velocity unit and returns the result in the most appropriate unit.default Per<AccelerationUnit<D>,
VoltageUnit> per
(VoltageUnit divisorUnit) Divides this measure by a voltage unit and returns the result in the most appropriate unit.default Acceleration<D>
plus
(Measure<? extends AccelerationUnit<D>> other) Adds another measure of the same unit type to this one.default Acceleration<D>
times
(double multiplier) Multiplies this measure by a scalar unitless multiplier.default Mult<AccelerationUnit<D>,
AccelerationUnit<?>> times
(Acceleration<?> multiplier) Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
AngleUnit> Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
AngularAccelerationUnit> times
(AngularAcceleration multiplier) Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
AngularMomentumUnit> times
(AngularMomentum multiplier) Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
AngularVelocityUnit> times
(AngularVelocity multiplier) Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
CurrentUnit> Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit.default Acceleration<D>
times
(Dimensionless multiplier) Multiplies this measure by a scalar dimensionless multiplier.default Mult<AccelerationUnit<D>,
DistanceUnit> Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
EnergyUnit> Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
ForceUnit> Multiplies this measure by a force and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
FrequencyUnit> Multiplies this measure by a frequency and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
LinearAccelerationUnit> times
(LinearAcceleration multiplier) Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
LinearMomentumUnit> times
(LinearMomentum multiplier) Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
LinearVelocityUnit> times
(LinearVelocity multiplier) Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
MassUnit> Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
MomentOfInertiaUnit> times
(MomentOfInertia multiplier) Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
MultUnit<?, ?>> Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
PerUnit<?, ?>> Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
PowerUnit> Multiplies this measure by a power and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
ResistanceUnit> times
(Resistance multiplier) Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
TemperatureUnit> times
(Temperature multiplier) Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
TimeUnit> Multiplies this measure by a time and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
TorqueUnit> Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
VelocityUnit<?>> Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit.default Mult<AccelerationUnit<D>,
VoltageUnit> Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit.default Acceleration<D>
Returns a measure equivalent to this one equal to zero minus its current value.unit()
Gets the units of this measure.Methods inherited from interface edu.wpi.first.units.Measure
abs, baseUnitMagnitude, compareTo, copySign, div, divide, divideRatio, gt, gte, isEquivalent, isNear, isNear, lt, lte, magnitude, times, timesConversionFactor, timesInverse, timesRatio, toLongString, toShortString
-
Method Details
-
ofRelativeUnits
-
ofBaseUnits
static <D extends Unit> Acceleration<D> ofBaseUnits(double baseUnitMagnitude, AccelerationUnit<D> unit) -
copy
Acceleration<D> copy()Description copied from interface:Measure
Returns an immutable copy of this measure. The copy can be used freely and is guaranteed never to change. -
mutableCopy
Description copied from interface:Measure
Returns a mutable copy of this measure. It will be initialized to the current state of this measure, but can be changed over time without needing to allocate new measurement objects.- Specified by:
mutableCopy
in interfaceMeasure<D extends Unit>
- Returns:
- the copied measure
-
unit
Description copied from interface:Measure
Gets the units of this measure. -
baseUnit
Description copied from interface:Measure
A convenience method to get the base unit of the measurement. Equivalent tounit().getBaseUnit()
. -
in
Description copied from interface:Measure
Converts this measure to a measure with a different unit of the same type, eg minutes to seconds. Converting to the same unit is equivalent to callingMeasure.magnitude()
.Meters.of(12).in(Feet) // 39.3701 Seconds.of(15).in(Minutes) // 0.25
-
unaryMinus
Description copied from interface:Measure
Returns a measure equivalent to this one equal to zero minus its current value. For non-linear unit types like temperature, the zero point is treated as the zero value of the base unit (eg Kelvin). In effect, this means code likeCelsius.of(10).unaryMinus()
returns a value equivalent to -10 Kelvin, and not -10° Celsius.- Specified by:
unaryMinus
in interfaceMeasure<D extends Unit>
- Returns:
- a measure equal to zero minus this measure
-
negate
Deprecated, for removal: This API element is subject to removal in a future version.use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2dReturns a measure equivalent to this one equal to zero minus its current value. For non-linear unit types like temperature, the zero point is treated as the zero value of the base unit (eg Kelvin). In effect, this means code likeCelsius.of(10).negate()
returns a value equivalent to -10 Kelvin, and not -10° Celsius. -
plus
Description copied from interface:Measure
Adds another measure of the same unit type to this one. -
minus
Description copied from interface:Measure
Subtracts another measure of the same unit type from this one. -
times
Description copied from interface:Measure
Multiplies this measure by a scalar unitless multiplier. -
div
Description copied from interface:Measure
Divides this measure by a unitless scalar and returns the result. -
divide
Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a unitless scalar and returns the result. -
times
Description copied from interface:Measure
Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a generic acceleration and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,AccelerationUnit<?>> divide(Acceleration<?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a generic acceleration and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an acceleration unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an angle and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,AngleUnit> divide(Angle divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an angle and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an angle unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an angular acceleration and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,AngularAccelerationUnit> divide(AngularAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an angular acceleration and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an angular acceleration unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an angular momentum and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,AngularMomentumUnit> divide(AngularMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an angular momentum and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an angular momentum unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an angular velocity and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,AngularVelocityUnit> divide(AngularVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an angular velocity and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an angular velocity unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an electric current and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,CurrentUnit> divide(Current divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an electric current and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a unit of electric current and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
div
Description copied from interface:Measure
Divides this measure by a dimensionless scalar and returns the result. -
divide
Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a dimensionless scalar and returns the result. -
times
Description copied from interface:Measure
Multiplies this measure by a scalar dimensionless multiplier. -
times
Description copied from interface:Measure
Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a distance and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,DistanceUnit> divide(Distance divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a distance and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a distance unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by an energy and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,EnergyUnit> divide(Energy divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by an energy and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by an energy unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a force and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a force and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,ForceUnit> divide(Force divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a force and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a force unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a frequency and returns the resulting measure in the most appropriate unit. This often - but not always - means implementations return a variation of aPer
measure. -
div
Description copied from interface:Measure
Divides this measure by a frequency and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,FrequencyUnit> divide(Frequency divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a frequency and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a frequency unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a linear acceleration and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,LinearAccelerationUnit> divide(LinearAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a linear acceleration and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a linear acceleration unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a linear momentum and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,LinearMomentumUnit> divide(LinearMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a linear momentum and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a linear momentum unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a linear velocity and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,LinearVelocityUnit> divide(LinearVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a linear velocity and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a linear velocity unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a mass and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,MassUnit> divide(Mass divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a mass and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a mass unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a moment of inertia and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,MomentOfInertiaUnit> divide(MomentOfInertia divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a moment of inertia and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a moment of inertia unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a generic multiplication and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,MultUnit<?, divide?>> (Mult<?, ?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a generic multiplication and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a generic compound unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a generic ratio and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,PerUnit<?, divide?>> (Per<?, ?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a generic ratio and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a generic ratio unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a power and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a power and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,PowerUnit> divide(Power divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a power and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a power unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a resistance and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,ResistanceUnit> divide(Resistance divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a resistance and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a resistance unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a temperature and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,TemperatureUnit> divide(Temperature divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a temperature and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a temperature unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a time and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a time and returns the result in the most appropriate unit. This will often - but not always - result in aPer
type likeLinearVelocity
orAcceleration
. -
divide
@Deprecated(since="2025", forRemoval=true) default Velocity<AccelerationUnit<D>> divide(Time divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a time and returns the result in the most appropriate unit. This will often - but not always - result in aPer
type likeLinearVelocity
orAcceleration
. -
per
Description copied from interface:Measure
Divides this measure by a time period and returns the result in the most appropriate unit. This is equivalent todiv(period.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a torque and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,TorqueUnit> divide(Torque divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a torque and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a torque unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a generic velocity and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,VelocityUnit<?>> divide(Velocity<?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a generic velocity and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a velocity unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
. -
times
Description copied from interface:Measure
Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit. -
div
Description copied from interface:Measure
Divides this measure by a voltage and returns the result in the most appropriate unit. -
divide
@Deprecated(since="2025", forRemoval=true) default Per<AccelerationUnit<D>,VoltageUnit> divide(Voltage divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead. This was renamed for consistency with other languages like KotlinDivides this measure by a voltage and returns the result in the most appropriate unit. -
per
Description copied from interface:Measure
Divides this measure by a voltage unit and returns the result in the most appropriate unit. This is equivalent todiv(divisorUnit.of(1))
.
-