mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
20 lines
669 B
Java
20 lines
669 B
Java
|
|
// 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.
|
||
|
|
|
||
|
|
package edu.wpi.first.units;
|
||
|
|
|
||
|
|
class ExampleUnit extends Unit<ExampleUnit> {
|
||
|
|
ExampleUnit(double baseUnitEquivalent) {
|
||
|
|
this(baseUnitEquivalent, "Example", "ex");
|
||
|
|
}
|
||
|
|
|
||
|
|
ExampleUnit(UnaryFunction toBase, UnaryFunction fromBase, String name, String symbol) {
|
||
|
|
super(ExampleUnit.class, toBase, fromBase, name, symbol);
|
||
|
|
}
|
||
|
|
|
||
|
|
ExampleUnit(double baseUnitEquivalent, String name, String symbol) {
|
||
|
|
super(ExampleUnit.class, baseUnitEquivalent, name, symbol);
|
||
|
|
}
|
||
|
|
}
|