| Package | Description |
|---|---|
| com.bric.math |
| Modifier and Type | Field and Description |
|---|---|
static Length |
Length.CENTIMETER
The unit definition of a centimeter.
|
static Length |
Length.DECIMETER
The unit definition of a decimeter.
|
static Length |
Length.FOOT
The unit definition of a foot.
|
static Length |
Length.INCH
The unit definition of an inch.
|
static Length |
Length.KILOMETER
The unit definition of a kilometer.
|
static Length |
Length.METER
The unit definition of a meter.
|
static Length |
Length.MICROMETER
The unit definition of a micrometer.
|
static Length |
Length.MILE
The unit definition of a mile.
|
static Length |
Length.MILLIMETER
The unit definition of a millimeter.
|
static Length |
Length.YARD
The unit definition of a yard.
|
| Modifier and Type | Method and Description |
|---|---|
Length |
Length.getUnit()
Returns the unit of this
Length object.
|
static Length |
Length.getUnitByName(String
Returns a unit associated with a given name.
|
static Length |
Length.getUnits()
Returns all the available units.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Length.getValue(Length
Returns the numeric value of this distance in the unit specified.
|
void |
Length.setUnit(Length
Changes the unit of this length, but the actual distance measured remains the same.
|
void |
Length.setValue(double v, Length
Redefine this
Length object.
|
| Constructor and Description | |
|---|---|
Length(double v, Length
Create a new
Length object.
|