001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.units;
006
007/**
008 * Unit of angular dimension.
009 *
010 * <p>This is the base type for units of angular dimension. It is also used to specify the dimension
011 * for {@link Measure}: <code>Measure&lt;Angle&gt;</code>.
012 *
013 * <p>Actual units (such as {@link Units#Degrees} and {@link Units#Radians}) can be found in the
014 * {@link Units} class.
015 */
016// technically, angles are unitless dimensions
017// eg Mass * Distance * Velocity<Angle> is equivalent to (Mass * Distance) / Time - otherwise known
018// as Power - in other words, Velocity<Angle> is /actually/ Frequency
019public class Angle extends Unit<Angle> {
020  /**
021   * Creates a new unit with the given name and multiplier to the base unit.
022   *
023   * @param baseUnitEquivalent the multiplier to convert this unit to the base unit of this type
024   * @param name the name of the angle measure
025   * @param symbol the symbol of the angle measure
026   */
027  Angle(double baseUnitEquivalent, String name, String symbol) {
028    super(Angle.class, baseUnitEquivalent, name, symbol);
029  }
030
031  Angle(
032      UnaryFunction toBaseConverter, UnaryFunction fromBaseConverter, String name, String symbol) {
033    super(Angle.class, toBaseConverter, fromBaseConverter, name, symbol);
034  }
035}