|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Unit in net.sourceforge.unit |
---|
Fields in net.sourceforge.unit declared as Unit | |
---|---|
static Unit |
Unit.pure
The unitless unit, such as radians, percents, or inches per inch. |
Methods in net.sourceforge.unit that return Unit | |
---|---|
Unit |
Unit.exponent(double n)
Create a new unit that is this one raised to the power n. |
Unit |
Unit.exponent(int n)
Create a new unit that is this one raised to the power n. |
static Unit |
Unit.newUnit(java.lang.String s)
Create, if necessary, a new unit from the given definiton. |
static Unit |
Unit.newUnit(java.lang.String name,
double m,
java.lang.String s)
Make a unit which is m times the unit s . |
static Unit |
Unit.newUnit(java.lang.String name,
double m,
java.lang.String s,
double b)
Make a unit which is m times the unit s ,
with an offset of b . |
static Unit |
Unit.newUnit(java.lang.String name,
double m,
Unit u,
double b)
Make a unit which is m times the unit u ,
with an offset of b . |
Unit |
UnitSystem.pick(Unit u)
Return the unit in this system that is the same type as u. |
Unit |
Unit.product(Unit b)
Create a new unit that is the product of this one and the other one. |
Unit |
Unit.quotient(Unit b)
Create a new unit that is the quotient of this one divided by the other one. |
Methods in net.sourceforge.unit with parameters of type Unit | |
---|---|
void |
UnitSystem.add(Unit u)
Add the unit u to this system. |
void |
UnitSystem.add(Unit[] u)
Add the unit u to this system. |
boolean |
UnitSystem.addPrimitive(Unit u)
This attempts to add a unit as a measurement of one of the seven primitives. |
void |
Quantity.convert(Unit u)
Change units, but not the value. |
boolean |
Unit.equals(Unit other)
Return true if this is the same unit as other . |
double |
Quantity.in(Unit u)
Return this value in the specified units. |
static Unit |
Unit.newUnit(java.lang.String name,
double m,
Unit u,
double b)
Make a unit which is m times the unit u ,
with an offset of b . |
Unit |
UnitSystem.pick(Unit u)
Return the unit in this system that is the same type as u. |
Unit |
Unit.product(Unit b)
Create a new unit that is the product of this one and the other one. |
Unit |
Unit.quotient(Unit b)
Create a new unit that is the quotient of this one divided by the other one. |
void |
UnitSystem.remove(Unit u)
Remove this unit from the list of prefered units. |
boolean |
Unit.sameType(Unit other)
Return true if other measures the same
thing (length, time, energy, ...). |
void |
Quantity.set(double x,
Unit u)
Set this value based on the supplied unit. |
Constructors in net.sourceforge.unit with parameters of type Unit | |
---|---|
Quantity(java.lang.String s,
Unit def)
Create a quantity with the default units specified. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |