// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

// THIS FILE WAS AUTO-GENERATED BY ./wpiunits/generate_units.py. DO NOT MODIFY

package edu.wpi.first.units.measure;

import static edu.wpi.first.units.Units.*;
import edu.wpi.first.units.*;

@SuppressWarnings({"unchecked", "cast", "checkstyle", "PMD"})
public interface MomentOfInertia extends Measure<MomentOfInertiaUnit> {
  static  MomentOfInertia ofRelativeUnits(double magnitude, MomentOfInertiaUnit unit) {
    return new ImmutableMomentOfInertia(magnitude, unit.toBaseUnits(magnitude), unit);
  }

  static  MomentOfInertia ofBaseUnits(double baseUnitMagnitude, MomentOfInertiaUnit unit) {
    return new ImmutableMomentOfInertia(unit.fromBaseUnits(baseUnitMagnitude), baseUnitMagnitude, unit);
  }

  @Override
  MomentOfInertia copy();

  @Override
  default MutMomentOfInertia mutableCopy() {
    return new MutMomentOfInertia(magnitude(), baseUnitMagnitude(), unit());
  }

  @Override
  MomentOfInertiaUnit unit();

  @Override
  default MomentOfInertiaUnit baseUnit() { return (MomentOfInertiaUnit) unit().getBaseUnit(); }

  @Override
  default double in(MomentOfInertiaUnit unit) {
    return unit.fromBaseUnits(baseUnitMagnitude());
  }

  @Override
  default MomentOfInertia unaryMinus() {
    return (MomentOfInertia) unit().ofBaseUnits(0 - baseUnitMagnitude());
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d
  */
  @Override
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  default MomentOfInertia negate() {
    return (MomentOfInertia) unaryMinus();
  }

  @Override
  default MomentOfInertia plus(Measure<? extends MomentOfInertiaUnit> other) {
    return (MomentOfInertia) unit().ofBaseUnits(baseUnitMagnitude() + other.baseUnitMagnitude());
  }

  @Override
  default MomentOfInertia minus(Measure<? extends MomentOfInertiaUnit> other) {
    return (MomentOfInertia) unit().ofBaseUnits(baseUnitMagnitude() - other.baseUnitMagnitude());
  }

  @Override
  default MomentOfInertia times(double multiplier) {
    return (MomentOfInertia) unit().ofBaseUnits(baseUnitMagnitude() * multiplier);
  }

  @Override
  default MomentOfInertia div(double divisor) {
    return (MomentOfInertia) unit().ofBaseUnits(baseUnitMagnitude() / divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Override
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  default MomentOfInertia divide(double divisor) {
    return (MomentOfInertia) div(divisor);
  }

  @Override
  default Velocity<MomentOfInertiaUnit> per(TimeUnit period) {
    return div(period.of(1));
  }


  @Override
  default Mult<MomentOfInertiaUnit, AccelerationUnit<?>> times(Acceleration<?> multiplier) {
    return (Mult<MomentOfInertiaUnit, AccelerationUnit<?>>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, AccelerationUnit<?>> div(Acceleration<?> divisor) {
    return (Per<MomentOfInertiaUnit, AccelerationUnit<?>>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, AccelerationUnit<?>> divide(Acceleration<?> divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, AngleUnit> times(Angle multiplier) {
    return (Mult<MomentOfInertiaUnit, AngleUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, AngleUnit> div(Angle divisor) {
    return (Per<MomentOfInertiaUnit, AngleUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, AngleUnit> divide(Angle divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, AngularAccelerationUnit> times(AngularAcceleration multiplier) {
    return (Mult<MomentOfInertiaUnit, AngularAccelerationUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, AngularAccelerationUnit> div(AngularAcceleration divisor) {
    return (Per<MomentOfInertiaUnit, AngularAccelerationUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, AngularAccelerationUnit> divide(AngularAcceleration divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, AngularMomentumUnit> times(AngularMomentum multiplier) {
    return (Mult<MomentOfInertiaUnit, AngularMomentumUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, AngularMomentumUnit> div(AngularMomentum divisor) {
    return (Per<MomentOfInertiaUnit, AngularMomentumUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, AngularMomentumUnit> divide(AngularMomentum divisor) {
    return div(divisor);
  }


  @Override
  default AngularMomentum times(AngularVelocity multiplier) {
    return KilogramMetersSquaredPerSecond.of(baseUnitMagnitude() * multiplier.baseUnitMagnitude());
  }

  @Override
  default Per<MomentOfInertiaUnit, AngularVelocityUnit> div(AngularVelocity divisor) {
    return (Per<MomentOfInertiaUnit, AngularVelocityUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, AngularVelocityUnit> divide(AngularVelocity divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, CurrentUnit> times(Current multiplier) {
    return (Mult<MomentOfInertiaUnit, CurrentUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, CurrentUnit> div(Current divisor) {
    return (Per<MomentOfInertiaUnit, CurrentUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, CurrentUnit> divide(Current divisor) {
    return div(divisor);
  }

  @Override
  default MomentOfInertia div(Dimensionless divisor) {
    return (MomentOfInertia) KilogramSquareMeters.of(baseUnitMagnitude() / divisor.baseUnitMagnitude());
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Override
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  default MomentOfInertia divide(Dimensionless divisor) {
    return (MomentOfInertia) div(divisor);
  }

  @Override
  default MomentOfInertia times(Dimensionless multiplier) {
    return (MomentOfInertia) KilogramSquareMeters.of(baseUnitMagnitude() * multiplier.baseUnitMagnitude());
  }


  @Override
  default Mult<MomentOfInertiaUnit, DistanceUnit> times(Distance multiplier) {
    return (Mult<MomentOfInertiaUnit, DistanceUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, DistanceUnit> div(Distance divisor) {
    return (Per<MomentOfInertiaUnit, DistanceUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, DistanceUnit> divide(Distance divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, EnergyUnit> times(Energy multiplier) {
    return (Mult<MomentOfInertiaUnit, EnergyUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, EnergyUnit> div(Energy divisor) {
    return (Per<MomentOfInertiaUnit, EnergyUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, EnergyUnit> divide(Energy divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, ForceUnit> times(Force multiplier) {
    return (Mult<MomentOfInertiaUnit, ForceUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, ForceUnit> div(Force divisor) {
    return (Per<MomentOfInertiaUnit, ForceUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, ForceUnit> divide(Force divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, FrequencyUnit> times(Frequency multiplier) {
    return (Mult<MomentOfInertiaUnit, FrequencyUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, FrequencyUnit> div(Frequency divisor) {
    return (Per<MomentOfInertiaUnit, FrequencyUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, FrequencyUnit> divide(Frequency divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, LinearAccelerationUnit> times(LinearAcceleration multiplier) {
    return (Mult<MomentOfInertiaUnit, LinearAccelerationUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, LinearAccelerationUnit> div(LinearAcceleration divisor) {
    return (Per<MomentOfInertiaUnit, LinearAccelerationUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, LinearAccelerationUnit> divide(LinearAcceleration divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, LinearMomentumUnit> times(LinearMomentum multiplier) {
    return (Mult<MomentOfInertiaUnit, LinearMomentumUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, LinearMomentumUnit> div(LinearMomentum divisor) {
    return (Per<MomentOfInertiaUnit, LinearMomentumUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, LinearMomentumUnit> divide(LinearMomentum divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, LinearVelocityUnit> times(LinearVelocity multiplier) {
    return (Mult<MomentOfInertiaUnit, LinearVelocityUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, LinearVelocityUnit> div(LinearVelocity divisor) {
    return (Per<MomentOfInertiaUnit, LinearVelocityUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, LinearVelocityUnit> divide(LinearVelocity divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, MassUnit> times(Mass multiplier) {
    return (Mult<MomentOfInertiaUnit, MassUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, MassUnit> div(Mass divisor) {
    return (Per<MomentOfInertiaUnit, MassUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, MassUnit> divide(Mass divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, MomentOfInertiaUnit> times(MomentOfInertia multiplier) {
    return (Mult<MomentOfInertiaUnit, MomentOfInertiaUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Dimensionless div(MomentOfInertia divisor) {
    return Value.of(baseUnitMagnitude() / divisor.baseUnitMagnitude());
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Dimensionless divide(MomentOfInertia divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, MultUnit<?, ?>> times(Mult<?, ?> multiplier) {
    return (Mult<MomentOfInertiaUnit, MultUnit<?, ?>>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, MultUnit<?, ?>> div(Mult<?, ?> divisor) {
    return (Per<MomentOfInertiaUnit, MultUnit<?, ?>>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, MultUnit<?, ?>> divide(Mult<?, ?> divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, PerUnit<?, ?>> times(Per<?, ?> multiplier) {
    return (Mult<MomentOfInertiaUnit, PerUnit<?, ?>>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, PerUnit<?, ?>> div(Per<?, ?> divisor) {
    return (Per<MomentOfInertiaUnit, PerUnit<?, ?>>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, PerUnit<?, ?>> divide(Per<?, ?> divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, PowerUnit> times(Power multiplier) {
    return (Mult<MomentOfInertiaUnit, PowerUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, PowerUnit> div(Power divisor) {
    return (Per<MomentOfInertiaUnit, PowerUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, PowerUnit> divide(Power divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, ResistanceUnit> times(Resistance multiplier) {
    return (Mult<MomentOfInertiaUnit, ResistanceUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, ResistanceUnit> div(Resistance divisor) {
    return (Per<MomentOfInertiaUnit, ResistanceUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, ResistanceUnit> divide(Resistance divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, TemperatureUnit> times(Temperature multiplier) {
    return (Mult<MomentOfInertiaUnit, TemperatureUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, TemperatureUnit> div(Temperature divisor) {
    return (Per<MomentOfInertiaUnit, TemperatureUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, TemperatureUnit> divide(Temperature divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, TimeUnit> times(Time multiplier) {
    return (Mult<MomentOfInertiaUnit, TimeUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Velocity<MomentOfInertiaUnit> div(Time divisor) {
    return VelocityUnit.combine(unit(), divisor.unit()).ofBaseUnits(baseUnitMagnitude() / divisor.baseUnitMagnitude());
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Velocity<MomentOfInertiaUnit> divide(Time divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, TorqueUnit> times(Torque multiplier) {
    return (Mult<MomentOfInertiaUnit, TorqueUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, TorqueUnit> div(Torque divisor) {
    return (Per<MomentOfInertiaUnit, TorqueUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, TorqueUnit> divide(Torque divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, VelocityUnit<?>> times(Velocity<?> multiplier) {
    return (Mult<MomentOfInertiaUnit, VelocityUnit<?>>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, VelocityUnit<?>> div(Velocity<?> divisor) {
    return (Per<MomentOfInertiaUnit, VelocityUnit<?>>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, VelocityUnit<?>> divide(Velocity<?> divisor) {
    return div(divisor);
  }


  @Override
  default Mult<MomentOfInertiaUnit, VoltageUnit> times(Voltage multiplier) {
    return (Mult<MomentOfInertiaUnit, VoltageUnit>) Measure.super.times(multiplier);
  }

  @Override
  default Per<MomentOfInertiaUnit, VoltageUnit> div(Voltage divisor) {
    return (Per<MomentOfInertiaUnit, VoltageUnit>) Measure.super.div(divisor);
  }

  /**
  * {@inheritDoc}
  *
  * @deprecated use div instead. This was renamed for consistency with other languages like Kotlin
  */
  @Deprecated(since = "2025", forRemoval = true)
  @SuppressWarnings({"deprecation", "removal"})
  @Override
  default Per<MomentOfInertiaUnit, VoltageUnit> divide(Voltage divisor) {
    return div(divisor);
  }

}
