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  Angle(Angle baseUnit, double baseUnitEquivalent, String name, String symbol) {
021    super(baseUnit, baseUnitEquivalent, name, symbol);
022  }
023
024  Angle(
025      Angle baseUnit,
026      UnaryFunction toBaseConverter,
027      UnaryFunction fromBaseConverter,
028      String name,
029      String symbol) {
030    super(baseUnit, toBaseConverter, fromBaseConverter, name, symbol);
031  }
032}