Package edu.wpi.first.units
Class Mult<A extends Unit<A>,B extends Unit<B>>
- Type Parameters:
A
- the type of the first unit in the resultB
- the type of the second unit in the result
public class Mult<A extends Unit<A>,B extends Unit<B>> extends Unit<Mult<A,B>>
A combinatory unit type that is equivalent to the product of two other others.
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.wpi.first.units.Unit
convertFrom, equivalent, fromBaseUnits, getConverterFromBase, getConverterToBase, mult, name, of, ofBaseUnits, one, per, per, symbol, toBaseUnits, zero
-
Constructor Details
-
Method Details
-
combine
Creates a new Mult unit derived from two arbitrary units multiplied together.Mult.combine(Volts, Meters) // Volt-Meters
It's recommended to use the convenience function
Unit.mult(Unit)
instead of calling this factory directly.- Type Parameters:
A
- the type of the first unitB
- the type of the second unit- Parameters:
a
- the first unitb
- the second unit- Returns:
- the combined unit
-
unitA
-
unitB
-
toString
-
equals
-
hashCode
-