Record Class MomentOfInertia

java.lang.Object
java.lang.Record
org.wpilib.units.measure.MomentOfInertia
All Implemented Interfaces:
Comparable<Measure<MomentOfInertiaUnit>>, Measure<MomentOfInertiaUnit>

public record MomentOfInertia(double magnitude, double baseUnitMagnitude, MomentOfInertiaUnit unit) extends Record implements Measure<MomentOfInertiaUnit>
  • Constructor Details

    • MomentOfInertia

      public MomentOfInertia(double magnitude, double baseUnitMagnitude, MomentOfInertiaUnit unit)
      Creates an instance of a MomentOfInertia record class.
      Parameters:
      magnitude - the value for the magnitude record component
      baseUnitMagnitude - the value for the baseUnitMagnitude record component
      unit - the value for the unit record component
  • Method Details