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

  static  AngularVelocity ofBaseUnits(double baseUnitMagnitude, AngularVelocityUnit unit) {
    return new ImmutableAngularVelocity(unit.fromBaseUnits(baseUnitMagnitude), baseUnitMagnitude, unit);
  }

  @Override
  AngularVelocity copy();

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

  @Override
  AngularVelocityUnit unit();

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

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

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

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

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

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

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

  @Override
  default AngularAcceleration per(TimeUnit period) {
    return div(period.of(1));
  }


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

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


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

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


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

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


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

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


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

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


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

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

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

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


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

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


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

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


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

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


  @Override
  default AngularAcceleration times(Frequency multiplier) {
    return RadiansPerSecondPerSecond.of(baseUnitMagnitude() * multiplier.baseUnitMagnitude());
  }

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


  @Override
  default Angle times(Time multiplier) {
    return Radians.of(baseUnitMagnitude() * multiplier.baseUnitMagnitude());
  }

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


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

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


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

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


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

  @Override
  default Per<AngularVelocityUnit, VoltageUnit> div(Voltage divisor) {
    return (Per<AngularVelocityUnit, 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<AngularVelocityUnit, VoltageUnit> divide(Voltage divisor) {
    return div(divisor);
  }
default Frequency asFrequency() { return Hertz.of(baseUnitMagnitude()); }
}
