Package edu.wpi.first.units.measure
Interface Dimensionless
- All Superinterfaces:
Comparable<Measure<DimensionlessUnit>>
,Measure<DimensionlessUnit>
- All Known Implementing Classes:
ImmutableDimensionless
,MutDimensionless
-
Field Summary
Fields inherited from interface edu.wpi.first.units.Measure
EQUIVALENCE_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptiondefault DimensionlessUnit
baseUnit()
A convenience method to get the base unit of the measurement.copy()
Returns an immutable copy of this measure.default Dimensionless
div
(double divisor) Divides this measure by a unitless scalar and returns the result.default Per<DimensionlessUnit,
AccelerationUnit<?>> div
(Acceleration<?> divisor) Divides this measure by a generic acceleration and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
AngleUnit> Divides this measure by an angle and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
AngularAccelerationUnit> div
(AngularAcceleration divisor) Divides this measure by an angular acceleration and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
AngularMomentumUnit> div
(AngularMomentum divisor) Divides this measure by an angular momentum and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
AngularVelocityUnit> div
(AngularVelocity divisor) Divides this measure by an angular velocity and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
CurrentUnit> Divides this measure by an electric current and returns the result in the most appropriate unit.default Dimensionless
div
(Dimensionless divisor) Divides this measure by a dimensionless scalar and returns the result.default Per<DimensionlessUnit,
DistanceUnit> Divides this measure by a distance and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
EnergyUnit> Divides this measure by an energy and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
ForceUnit> Divides this measure by a force and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
FrequencyUnit> Divides this measure by a frequency and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
LinearAccelerationUnit> div
(LinearAcceleration divisor) Divides this measure by a linear acceleration and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
LinearMomentumUnit> div
(LinearMomentum divisor) Divides this measure by a linear momentum and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
LinearVelocityUnit> div
(LinearVelocity divisor) Divides this measure by a linear velocity and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
MassUnit> Divides this measure by a mass and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
MomentOfInertiaUnit> div
(MomentOfInertia divisor) Divides this measure by a moment of inertia and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
MultUnit<?, ?>> Divides this measure by a generic multiplication and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
PerUnit<?, ?>> Divides this measure by a generic ratio and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
PowerUnit> Divides this measure by a power and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
ResistanceUnit> div
(Resistance divisor) Divides this measure by a resistance and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
TemperatureUnit> div
(Temperature divisor) Divides this measure by a temperature and returns the result in the most appropriate unit.default Frequency
Divides this measure by a time and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
TorqueUnit> Divides this measure by a torque and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
VelocityUnit<?>> Divides this measure by a generic velocity and returns the result in the most appropriate unit.default Per<DimensionlessUnit,
VoltageUnit> Divides this measure by a voltage and returns the result in the most appropriate unit.default Dimensionless
divide
(double divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
AccelerationUnit<?>> divide
(Acceleration<?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
AngleUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
AngularAccelerationUnit> divide
(AngularAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
AngularMomentumUnit> divide
(AngularMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
AngularVelocityUnit> divide
(AngularVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
CurrentUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Dimensionless
divide
(Dimensionless divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
DistanceUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
EnergyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
ForceUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
FrequencyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
LinearAccelerationUnit> divide
(LinearAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
LinearMomentumUnit> divide
(LinearMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
LinearVelocityUnit> divide
(LinearVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
MassUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
MomentOfInertiaUnit> divide
(MomentOfInertia divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
MultUnit<?, ?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
PerUnit<?, ?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
PowerUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
ResistanceUnit> divide
(Resistance divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
TemperatureUnit> divide
(Temperature divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Frequency
Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
TorqueUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
VelocityUnit<?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<DimensionlessUnit,
VoltageUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default double
in
(DimensionlessUnit unit) Converts this measure to a measure with a different unit of the same type, eg minutes to seconds.default Dimensionless
minus
(Measure<? extends DimensionlessUnit> other) Subtracts another measure of the same unit type from this one.default MutDimensionless
Returns a mutable copy of this measure.default Dimensionless
negate()
Deprecated, for removal: This API element is subject to removal in a future version.use unaryMinus() instead.static Dimensionless
ofBaseUnits
(double baseUnitMagnitude, DimensionlessUnit unit) static Dimensionless
ofRelativeUnits
(double magnitude, DimensionlessUnit unit) default Frequency
Divides this measure by a time period and returns the result in the most appropriate unit.default Dimensionless
plus
(Measure<? extends DimensionlessUnit> other) Adds another measure of the same unit type to this one.default Dimensionless
times
(double multiplier) Multiplies this measure by a scalar unitless multiplier.default Mult<DimensionlessUnit,
AccelerationUnit<?>> times
(Acceleration<?> multiplier) Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit.default Angle
Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit.default AngularAcceleration
times
(AngularAcceleration multiplier) Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit.default AngularMomentum
times
(AngularMomentum multiplier) Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit.default AngularVelocity
times
(AngularVelocity multiplier) Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit.default Current
Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit.default Dimensionless
times
(Dimensionless multiplier) Multiplies this measure by a scalar dimensionless multiplier.default Distance
Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit.default Energy
Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit.default Force
Multiplies this measure by a force and returns the resulting measure in the most appropriate unit.default Frequency
Multiplies this measure by a frequency and returns the resulting measure in the most appropriate unit.default LinearAcceleration
times
(LinearAcceleration multiplier) Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit.default LinearMomentum
times
(LinearMomentum multiplier) Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit.default LinearVelocity
times
(LinearVelocity multiplier) Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit.default Mass
Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit.default MomentOfInertia
times
(MomentOfInertia multiplier) Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit.default Mult<DimensionlessUnit,
MultUnit<?, ?>> Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit.default Mult<DimensionlessUnit,
PerUnit<?, ?>> Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit.default Power
Multiplies this measure by a power and returns the resulting measure in the most appropriate unit.default Resistance
times
(Resistance multiplier) Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit.default Temperature
times
(Temperature multiplier) Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit.default Time
Multiplies this measure by a time and returns the resulting measure in the most appropriate unit.default Torque
Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit.default Mult<DimensionlessUnit,
VelocityUnit<?>> Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit.default Voltage
Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit.default Dimensionless
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
-
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.- Specified by:
copy
in interfaceMeasure<DimensionlessUnit>
- Returns:
- the copied measure
-
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<DimensionlessUnit>
- Returns:
- the copied measure
-
unit
Description copied from interface:Measure
Gets the units of this measure.- Specified by:
unit
in interfaceMeasure<DimensionlessUnit>
- Returns:
- the unit
-
baseUnit
Description copied from interface:Measure
A convenience method to get the base unit of the measurement. Equivalent tounit().getBaseUnit()
.- Specified by:
baseUnit
in interfaceMeasure<DimensionlessUnit>
- Returns:
- the base unit of measure.
-
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
- Specified by:
in
in interfaceMeasure<DimensionlessUnit>
- Parameters:
unit
- the unit to convert this measure to- Returns:
- the value of this measure in the given unit
-
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<DimensionlessUnit>
- 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.- Specified by:
negate
in interfaceMeasure<DimensionlessUnit>
- Returns:
- a measure equal to zero minus this measure
-
plus
Description copied from interface:Measure
Adds another measure of the same unit type to this one.- Specified by:
plus
in interfaceMeasure<DimensionlessUnit>
- Parameters:
other
- the measurement to add- Returns:
- a measure of the sum of both measures
-
minus
Description copied from interface:Measure
Subtracts another measure of the same unit type from this one.- Specified by:
minus
in interfaceMeasure<DimensionlessUnit>
- Parameters:
other
- the measurement to subtract- Returns:
- a measure of the difference between the measures
-
times
Description copied from interface:Measure
Multiplies this measure by a scalar unitless multiplier.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the scalar multiplication factor- Returns:
- the scaled result
-
div
Description copied from interface:Measure
Divides this measure by a unitless scalar and returns the result.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division 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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
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))
.- Specified by:
per
in interfaceMeasure<DimensionlessUnit>
- Parameters:
period
- the time period measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a generic acceleration and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an angle and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an angular acceleration and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an angular momentum and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an angular velocity and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an electric current and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
div
Description copied from interface:Measure
Divides this measure by a dimensionless scalar and returns the result.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division 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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a scalar dimensionless multiplier.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the scalar multiplication factor- Returns:
- the scaled result
-
times
Description copied from interface:Measure
Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a distance and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by an energy and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a force and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a force and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
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.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a frequency and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a linear acceleration and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a linear momentum and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a linear velocity and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a mass and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a moment of inertia and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a generic multiplication and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a generic ratio and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a power and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a power and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a resistance and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a temperature and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a time and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
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
.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division 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 time and returns the result in the most appropriate unit. This will often - but not always - result in aPer
type likeLinearVelocity
orAcceleration
.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a torque and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a generic velocity and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
times
Description copied from interface:Measure
Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit.- Specified by:
times
in interfaceMeasure<DimensionlessUnit>
- Parameters:
multiplier
- the measurement to multiply by.- Returns:
- the multiplication result
-
div
Description copied from interface:Measure
Divides this measure by a voltage and returns the result in the most appropriate unit.- Specified by:
div
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-
divide
@Deprecated(since="2025", forRemoval=true) default Per<DimensionlessUnit,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.- Specified by:
divide
in interfaceMeasure<DimensionlessUnit>
- Parameters:
divisor
- the measurement to divide by.- Returns:
- the division result
-