Skip to content

Commit 769ce5e

Browse files
authored
[wpiunits] Rename AngularMomentumUnit.mult to per (#8409)
Fixes #8408
1 parent f6b4ad5 commit 769ce5e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

wpiunits/src/main/java/edu/wpi/first/units/AngularMomentumUnit.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ public VelocityUnit<AngularMomentumUnit> per(TimeUnit time) {
8080
return VelocityUnit.combine(this, time);
8181
}
8282

83+
/**
84+
* Combines this angular momentum by an angular velocity to yield a unit of moment of inertia.
85+
*
86+
* @param omega the unit of angular velocity
87+
* @return the moment of inertia unit
88+
*/
89+
public MomentOfInertiaUnit per(AngularVelocityUnit omega) {
90+
return MomentOfInertiaUnit.combine(this, omega);
91+
}
92+
8393
/**
8494
* Creates a ratio unit between this unit and an arbitrary other unit.
8595
*
@@ -101,14 +111,4 @@ public <U extends Unit> PerUnit<AngularMomentumUnit, U> per(U other) {
101111
public double convertFrom(double magnitude, AngularMomentumUnit otherUnit) {
102112
return fromBaseUnits(otherUnit.toBaseUnits(magnitude));
103113
}
104-
105-
/**
106-
* Multiplies this angular momentum by an angular velocity to yield a unit of moment of inertia.
107-
*
108-
* @param omega the unit of angular velocity
109-
* @return the moment of inertia unit
110-
*/
111-
public MomentOfInertiaUnit mult(AngularVelocityUnit omega) {
112-
return MomentOfInertiaUnit.combine(this, omega);
113-
}
114114
}

wpiunits/src/main/java/edu/wpi/first/units/Units.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private Units() {
378378

379379
/** The standard SI unit for moment of inertia. */
380380
public static final MomentOfInertiaUnit KilogramSquareMeters =
381-
KilogramMetersSquaredPerSecond.mult(RadiansPerSecond);
381+
KilogramMetersSquaredPerSecond.per(RadiansPerSecond);
382382

383383
// VoltageUnit
384384
/** The base unit of electric potential. */

0 commit comments

Comments
 (0)