// 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 Force extends Measure<ForceUnit> {
  static  Force ofRelativeUnits(double magnitude, ForceUnit unit) {
    return new ImmutableForce(magnitude, unit.toBaseUnits(magnitude), unit);
  }

  static  Force ofBaseUnits(double baseUnitMagnitude, ForceUnit unit) {
    return new ImmutableForce(unit.fromBaseUnits(baseUnitMagnitude), baseUnitMagnitude, unit);
  }

  @Override
  Force copy();

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

  @Override
  ForceUnit unit();

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

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

  @Override
  default Force unaryMinus() {
    return (Force) 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 Force negate() {
    return (Force) unaryMinus();
  }

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

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

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

  @Override
  default Force div(double divisor) {
    return (Force) 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 Force divide(double divisor) {
    return (Force) div(divisor);
  }

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


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

  @Override
  default Per<ForceUnit, AccelerationUnit<?>> div(Acceleration<?> divisor) {
    return (Per<ForceUnit, 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<ForceUnit, AccelerationUnit<?>> divide(Acceleration<?> divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, AngleUnit> div(Angle divisor) {
    return (Per<ForceUnit, 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<ForceUnit, AngleUnit> divide(Angle divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, AngularAccelerationUnit> div(AngularAcceleration divisor) {
    return (Per<ForceUnit, 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<ForceUnit, AngularAccelerationUnit> divide(AngularAcceleration divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, AngularMomentumUnit> div(AngularMomentum divisor) {
    return (Per<ForceUnit, 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<ForceUnit, AngularMomentumUnit> divide(AngularMomentum divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, AngularVelocityUnit> div(AngularVelocity divisor) {
    return (Per<ForceUnit, 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<ForceUnit, AngularVelocityUnit> divide(AngularVelocity divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, CurrentUnit> div(Current divisor) {
    return (Per<ForceUnit, 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<ForceUnit, CurrentUnit> divide(Current divisor) {
    return div(divisor);
  }

  @Override
  default Force div(Dimensionless divisor) {
    return (Force) Newtons.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 Force divide(Dimensionless divisor) {
    return (Force) div(divisor);
  }

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


  @Override
  default Energy times(Distance multiplier) {
    return Joules.of(baseUnitMagnitude() * multiplier.baseUnitMagnitude());
  }

  @Override
  default Per<ForceUnit, DistanceUnit> div(Distance divisor) {
    return (Per<ForceUnit, 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<ForceUnit, DistanceUnit> divide(Distance divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, EnergyUnit> div(Energy divisor) {
    return (Per<ForceUnit, 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<ForceUnit, EnergyUnit> divide(Energy divisor) {
    return div(divisor);
  }


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

  @Override
  default Dimensionless div(Force 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(Force divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, FrequencyUnit> div(Frequency divisor) {
    return (Per<ForceUnit, 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<ForceUnit, FrequencyUnit> divide(Frequency divisor) {
    return div(divisor);
  }


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

  @Override
  default Mass div(LinearAcceleration divisor) {
    return Kilograms.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 Mass divide(LinearAcceleration divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, LinearMomentumUnit> div(LinearMomentum divisor) {
    return (Per<ForceUnit, 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<ForceUnit, LinearMomentumUnit> divide(LinearMomentum divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, LinearVelocityUnit> div(LinearVelocity divisor) {
    return (Per<ForceUnit, 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<ForceUnit, LinearVelocityUnit> divide(LinearVelocity divisor) {
    return div(divisor);
  }


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

  @Override
  default LinearAcceleration div(Mass divisor) {
    return MetersPerSecondPerSecond.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 LinearAcceleration divide(Mass divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, MomentOfInertiaUnit> div(MomentOfInertia divisor) {
    return (Per<ForceUnit, MomentOfInertiaUnit>) 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<ForceUnit, MomentOfInertiaUnit> divide(MomentOfInertia divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, MultUnit<?, ?>> div(Mult<?, ?> divisor) {
    return (Per<ForceUnit, 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<ForceUnit, MultUnit<?, ?>> divide(Mult<?, ?> divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, PerUnit<?, ?>> div(Per<?, ?> divisor) {
    return (Per<ForceUnit, 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<ForceUnit, PerUnit<?, ?>> divide(Per<?, ?> divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, PowerUnit> div(Power divisor) {
    return (Per<ForceUnit, 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<ForceUnit, PowerUnit> divide(Power divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, ResistanceUnit> div(Resistance divisor) {
    return (Per<ForceUnit, 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<ForceUnit, ResistanceUnit> divide(Resistance divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, TemperatureUnit> div(Temperature divisor) {
    return (Per<ForceUnit, 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<ForceUnit, TemperatureUnit> divide(Temperature divisor) {
    return div(divisor);
  }


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

  @Override
  default Velocity<ForceUnit> 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<ForceUnit> divide(Time divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, TorqueUnit> div(Torque divisor) {
    return (Per<ForceUnit, 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<ForceUnit, TorqueUnit> divide(Torque divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, VelocityUnit<?>> div(Velocity<?> divisor) {
    return (Per<ForceUnit, 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<ForceUnit, VelocityUnit<?>> divide(Velocity<?> divisor) {
    return div(divisor);
  }


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

  @Override
  default Per<ForceUnit, VoltageUnit> div(Voltage divisor) {
    return (Per<ForceUnit, 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<ForceUnit, VoltageUnit> divide(Voltage divisor) {
    return div(divisor);
  }

}
