mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user