[wpiunits] Rename AngularMomentumUnit.mult to per (#8409)

Fixes #8408
This commit is contained in:
Keagan Kautzer
2025-11-23 16:40:30 -06:00
committed by GitHub
parent f6b4ad575b
commit 769ce5e9fa
2 changed files with 11 additions and 11 deletions

View File

@@ -80,6 +80,16 @@ public final class AngularMomentumUnit extends MultUnit<LinearMomentumUnit, Dist
return VelocityUnit.combine(this, time);
}
/**
* Combines this angular momentum by an angular velocity to yield a unit of moment of inertia.
*
* @param omega the unit of angular velocity
* @return the moment of inertia unit
*/
public MomentOfInertiaUnit per(AngularVelocityUnit omega) {
return MomentOfInertiaUnit.combine(this, omega);
}
/**
* Creates a ratio unit between this unit and an arbitrary other unit.
*
@@ -101,14 +111,4 @@ public final class AngularMomentumUnit extends MultUnit<LinearMomentumUnit, Dist
public double convertFrom(double magnitude, AngularMomentumUnit otherUnit) {
return fromBaseUnits(otherUnit.toBaseUnits(magnitude));
}
/**
* Multiplies this angular momentum by an angular velocity to yield a unit of moment of inertia.
*
* @param omega the unit of angular velocity
* @return the moment of inertia unit
*/
public MomentOfInertiaUnit mult(AngularVelocityUnit omega) {
return MomentOfInertiaUnit.combine(this, omega);
}
}

View File

@@ -378,7 +378,7 @@ public final class Units {
/** The standard SI unit for moment of inertia. */
public static final MomentOfInertiaUnit KilogramSquareMeters =
KilogramMetersSquaredPerSecond.mult(RadiansPerSecond);
KilogramMetersSquaredPerSecond.per(RadiansPerSecond);
// VoltageUnit
/** The base unit of electric potential. */