Package edu.wpi.first.units.measure
Interface Mass
- All Superinterfaces:
Comparable<Measure<MassUnit>>
,Measure<MassUnit>
- All Known Implementing Classes:
ImmutableMass
,MutMass
-
Field Summary
Fields inherited from interface edu.wpi.first.units.Measure
EQUIVALENCE_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptiondefault MassUnit
baseUnit()
A convenience method to get the base unit of the measurement.copy()
Returns an immutable copy of this measure.default Mass
div
(double divisor) Divides this measure by a unitless scalar and returns the result.default Per<MassUnit,
AccelerationUnit<?>> div
(Acceleration<?> divisor) Divides this measure by a generic acceleration and returns the result in the most appropriate unit.Divides this measure by an angle and returns the result in the most appropriate unit.default Per<MassUnit,
AngularAccelerationUnit> div
(AngularAcceleration divisor) Divides this measure by an angular acceleration and returns the result in the most appropriate unit.default Per<MassUnit,
AngularMomentumUnit> div
(AngularMomentum divisor) Divides this measure by an angular momentum and returns the result in the most appropriate unit.default Per<MassUnit,
AngularVelocityUnit> div
(AngularVelocity divisor) Divides this measure by an angular velocity and returns the result in the most appropriate unit.default Per<MassUnit,
CurrentUnit> Divides this measure by an electric current and returns the result in the most appropriate unit.default Mass
div
(Dimensionless divisor) Divides this measure by a dimensionless scalar and returns the result.default Per<MassUnit,
DistanceUnit> Divides this measure by a distance and returns the result in the most appropriate unit.default Per<MassUnit,
EnergyUnit> Divides this measure by an energy and returns the result in the most appropriate unit.Divides this measure by a force and returns the result in the most appropriate unit.default Per<MassUnit,
FrequencyUnit> Divides this measure by a frequency and returns the result in the most appropriate unit.default Per<MassUnit,
LinearAccelerationUnit> div
(LinearAcceleration divisor) Divides this measure by a linear acceleration and returns the result in the most appropriate unit.default Per<MassUnit,
LinearMomentumUnit> div
(LinearMomentum divisor) Divides this measure by a linear momentum and returns the result in the most appropriate unit.default Per<MassUnit,
LinearVelocityUnit> div
(LinearVelocity divisor) Divides this measure by a linear velocity and returns the result in the most appropriate unit.default Dimensionless
Divides this measure by a mass and returns the result in the most appropriate unit.default Per<MassUnit,
MomentOfInertiaUnit> div
(MomentOfInertia divisor) Divides this measure by a moment of inertia and returns the result in the most appropriate unit.Divides this measure by a generic multiplication and returns the result in the most appropriate unit.Divides this measure by a generic ratio and returns the result in the most appropriate unit.Divides this measure by a power and returns the result in the most appropriate unit.default Per<MassUnit,
ResistanceUnit> div
(Resistance divisor) Divides this measure by a resistance and returns the result in the most appropriate unit.default Per<MassUnit,
TemperatureUnit> div
(Temperature divisor) Divides this measure by a temperature and returns the result in the most appropriate unit.Divides this measure by a time and returns the result in the most appropriate unit.default Per<MassUnit,
TorqueUnit> Divides this measure by a torque and returns the result in the most appropriate unit.default Per<MassUnit,
VelocityUnit<?>> Divides this measure by a generic velocity and returns the result in the most appropriate unit.default Per<MassUnit,
VoltageUnit> Divides this measure by a voltage and returns the result in the most appropriate unit.default Mass
divide
(double divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
AccelerationUnit<?>> divide
(Acceleration<?> divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
AngularAccelerationUnit> divide
(AngularAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
AngularMomentumUnit> divide
(AngularMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
AngularVelocityUnit> divide
(AngularVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
CurrentUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Mass
divide
(Dimensionless divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
DistanceUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
EnergyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
FrequencyUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
LinearAccelerationUnit> divide
(LinearAcceleration divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
LinearMomentumUnit> divide
(LinearMomentum divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
LinearVelocityUnit> divide
(LinearVelocity divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Dimensionless
Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
MomentOfInertiaUnit> divide
(MomentOfInertia divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
ResistanceUnit> divide
(Resistance divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
TemperatureUnit> divide
(Temperature divisor) Deprecated, for removal: This API element is subject to removal in a future version.use div instead.Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
TorqueUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
VelocityUnit<?>> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default Per<MassUnit,
VoltageUnit> Deprecated, for removal: This API element is subject to removal in a future version.use div instead.default double
Converts this measure to a measure with a different unit of the same type, eg minutes to seconds.default Mass
Subtracts another measure of the same unit type from this one.default MutMass
Returns a mutable copy of this measure.default Mass
negate()
Deprecated, for removal: This API element is subject to removal in a future version.use unaryMinus() instead.static Mass
ofBaseUnits
(double baseUnitMagnitude, MassUnit unit) static Mass
ofRelativeUnits
(double magnitude, MassUnit unit) Divides this measure by a time period and returns the result in the most appropriate unit.default Mass
Adds another measure of the same unit type to this one.default Mass
times
(double multiplier) Multiplies this measure by a scalar unitless multiplier.default Mult<MassUnit,
AccelerationUnit<?>> times
(Acceleration<?> multiplier) Multiplies this measure by an acceleration and returns the resulting measure in the most appropriate unit.Multiplies this measure by an angle and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
AngularAccelerationUnit> times
(AngularAcceleration multiplier) Multiplies this measure by an angular acceleration and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
AngularMomentumUnit> times
(AngularMomentum multiplier) Multiplies this measure by an angular momentum and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
AngularVelocityUnit> times
(AngularVelocity multiplier) Multiplies this measure by an angular velocity and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
CurrentUnit> Multiplies this measure by an electric current and returns the resulting measure in the most appropriate unit.default Mass
times
(Dimensionless multiplier) Multiplies this measure by a scalar dimensionless multiplier.default Mult<MassUnit,
DistanceUnit> Multiplies this measure by a distance and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
EnergyUnit> Multiplies this measure by an energy and returns the resulting measure in the most appropriate unit.Multiplies this measure by a force and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
FrequencyUnit> Multiplies this measure by a frequency and returns the resulting measure in the most appropriate unit.default Force
times
(LinearAcceleration multiplier) Multiplies this measure by a linear acceleration and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
LinearMomentumUnit> times
(LinearMomentum multiplier) Multiplies this measure by a linear momentum and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
LinearVelocityUnit> times
(LinearVelocity multiplier) Multiplies this measure by a linear velocity and returns the resulting measure in the most appropriate unit.Multiplies this measure by a mass and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
MomentOfInertiaUnit> times
(MomentOfInertia multiplier) Multiplies this measure by a moment of intertia and returns the resulting measure in the most appropriate unit.Multiplies this measure by a generic multiplied measure and returns the resulting measure in the most appropriate unit.Multiplies this measure by a generic ratio measurement and returns the resulting measure in the most appropriate unit.Multiplies this measure by a power and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
ResistanceUnit> times
(Resistance multiplier) Multiplies this measure by a resistance and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
TemperatureUnit> times
(Temperature multiplier) Multiplies this measure by a temperature and returns the resulting measure in the most appropriate unit.Multiplies this measure by a time and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
TorqueUnit> Multiplies this measure by a torque and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
VelocityUnit<?>> Multiplies this measure by a generic velocity and returns the resulting measure in the most appropriate unit.default Mult<MassUnit,
VoltageUnit> Multiplies this measure by a voltage and returns the resulting measure in the most appropriate unit.default Mass
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. -
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<MassUnit>
- 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<MassUnit>
- 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. -
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 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<MassUnit,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. -
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, 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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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, 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. -
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, 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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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, 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. -
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<MassUnit,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. -
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<MassUnit,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. -
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<MassUnit,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. -
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, 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. -
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<MassUnit,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. -
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<MassUnit,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. -
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, 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
. -
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, 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. -
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<MassUnit,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. -
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<MassUnit,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.
-