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 * A type of unit that corresponds to raw values and not any physical dimension, such as percentage. 009 */ 010public class Dimensionless extends Unit<Dimensionless> { 011 /** 012 * Creates a new unit with the given name and multiplier to the base unit. 013 * 014 * @param baseUnitEquivalent the multiplier to convert this unit to the base unit of this type. 015 * @param name the name of the unit 016 * @param symbol the symbol of the unit 017 */ 018 Dimensionless(double baseUnitEquivalent, String name, String symbol) { 019 super(Dimensionless.class, baseUnitEquivalent, name, symbol); 020 } 021 022 Dimensionless( 023 UnaryFunction toBaseConverter, UnaryFunction fromBaseConverter, String name, String symbol) { 024 super(Dimensionless.class, toBaseConverter, fromBaseConverter, name, symbol); 025 } 026}