| Modifier and Type | Method | Description |
|---|---|---|
UV |
UV.add(double value,
U u) |
Like
add(UV uv) but the UnitValue to add is specified as a value and a Unit. |
UV |
UV.add(UV uv) |
Adds another UnitValue to this one and returns the resulting UnitValue.
|
UV |
UV.convert(U to) |
Converts this UnitValue to another Unit.
|
UV |
UV.convertAbsolute(U to) |
Converts this unit while accounting for offset.
|
UV |
UV.convertAuto(double target) |
Calculates and returns the unit most appropriate for displaying a given value.
|
UV |
UV.div(double value,
U u) |
Like
div(UV uv) but the UnitValue to divide with is specified as a value and a Unit. |
UV |
UV.div(UV uv) |
Divides this UnitValue with another and returns the resulting UnitValue.
|
UV |
UV.inverse() |
Invert this UnitValue.
|
static UV |
UV.max(UV a,
UV b) |
Compares two compatible unit vectors and returns the largest of them.
|
static UV |
UV.min(UV a,
UV b) |
Compares two compatible unit vectors and returns the smallest of them.
|
UV |
UV.mul(double value,
U u) |
Like
mul(UV uv) but the UnitValue to multiply with is specified as a value and a Unit. |
UV |
UV.mul(UV uv) |
Multiplies another UnitValue with this one and returns the resulting UnitValue.
|
UV |
UV.negate() |
Negate this UnitValue.
|
UV |
UV.negatePercent() |
Negate this UnitValue as a percentage.
|
UV |
UV.pow(double p) |
Raise this UnitValue to a power.
|
UV |
UV.sub(double value,
U u) |
Like
sub(UV uv) but the UnitValue to subtract is specified as a value and a Unit. |
UV |
UV.sub(UV uv) |
Subtracts another UnitValue from this one and returns the resulting UnitValue.
|
| Modifier and Type | Method | Description |
|---|---|---|
UV |
UV.add(UV uv) |
Adds another UnitValue to this one and returns the resulting UnitValue.
|
int |
UV.compareTo(UV uv) |
|
UV |
UV.div(UV uv) |
Divides this UnitValue with another and returns the resulting UnitValue.
|
static U |
U.getBestUnit(UV uv,
double target) |
Calculates and returns the most suitable unit to display a given UV in.
|
static UV |
UV.max(UV a,
UV b) |
Compares two compatible unit vectors and returns the largest of them.
|
static UV |
UV.min(UV a,
UV b) |
Compares two compatible unit vectors and returns the smallest of them.
|
UV |
UV.mul(UV uv) |
Multiplies another UnitValue with this one and returns the resulting UnitValue.
|
void |
UV.set(UV uv) |
Sets this UV to be a copy of another UV.
|
UV |
UV.sub(UV uv) |
Subtracts another UnitValue from this one and returns the resulting UnitValue.
|
| Constructor | Description |
|---|---|
UV(UV uv) |
Copyright © 2018. All rights reserved.