U - Unitpublic static class DoubleScalar.Abs<U extends Unit<U>> extends DoubleScalar<U> implements Absolute, Comparable<DoubleScalar.Abs<U>>, MathFunctionsAbs<DoubleScalar.Abs<U>>
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
double |
si
The value, stored in the standard SI unit.
|
| Constructor and Description |
|---|
Abs(DoubleScalar.Abs<U> value)
Construct a new Absolute Immutable DoubleScalar from an existing Absolute Immutable DoubleScalar.
|
Abs(double value,
U unit)
Construct a new Absolute Immutable DoubleScalar.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Abs<U> |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
int |
compareTo(DoubleScalar.Abs<U> o) |
DoubleScalar.Abs<U> |
divideBy(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
boolean |
eq(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is equal to a DoubleScalar.Abs<U>.
|
DoubleScalar.Abs<U> |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
boolean |
ge(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is greater than a DoubleScalar.Abs<U>.
|
double |
getSI()
Retrieve the value in the underlying SI unit.
|
boolean |
gt(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is greater than or equal to a DoubleScalar.Abs<U>.
|
boolean |
le(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is less than or equal to a DoubleScalar.Abs<U>.
|
boolean |
lt(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is less than a DoubleScalar.Abs<U>.
|
DoubleScalar.Rel<U> |
minus(DoubleScalar.Abs<U> decrement)
Decrement the value by the supplied value and return the result.
|
DoubleScalar.Abs<U> |
minus(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
DoubleScalar.Abs<U> |
multiplyBy(double constant)
Scale the value(s) by a factor.
|
boolean |
ne(DoubleScalar.Abs<U> o)
Test if this DoubleScalar.Abs<U> is not equal to a DoubleScalar.Abs<U>.
|
DoubleScalar.Abs<U> |
plus(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
DoubleScalar.Abs<U> |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
DoubleScalar.Abs<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
divide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic Abs(double value,
U unit)
value - double; the value of the new Absolute Immutable DoubleScalarunit - U; the unit of the new Absolute Immutable DoubleScalarpublic Abs(DoubleScalar.Abs<U> value)
value - DoubleScalar.Abs<U>; the referencepublic final int compareTo(DoubleScalar.Abs<U> o)
compareTo in interface Comparable<DoubleScalar.Abs<U extends Unit<U>>>public final double getSI()
getSI in class DoubleScalar<U extends Unit<U>>public final boolean lt(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final boolean le(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final boolean gt(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final boolean ge(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final boolean eq(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final boolean ne(DoubleScalar.Abs<U> o)
o - DoubleScalar.Abs<U>; the right hand side operand of the comparisonpublic final DoubleScalar.Abs<U> plus(DoubleScalar.Rel<U> increment)
increment - DoubleScalar.Rel<U>; amount by which the value is incrementedpublic final DoubleScalar.Abs<U> minus(DoubleScalar.Rel<U> decrement)
decrement - DoubleScalar.Rel<U>; amount by which the value is decrementedpublic final DoubleScalar.Rel<U> minus(DoubleScalar.Abs<U> decrement)
decrement - DoubleScalar.Abs<U>; amount by which the value is decrementedpublic DoubleScalar.Abs<U> ceil()
ceil in interface MathFunctionsAbs<DoubleScalar.Abs<U extends Unit<U>>>public DoubleScalar.Abs<U> floor()
floor in interface MathFunctionsAbs<DoubleScalar.Abs<U extends Unit<U>>>public DoubleScalar.Abs<U> rint()
rint in interface MathFunctionsAbs<DoubleScalar.Abs<U extends Unit<U>>>public DoubleScalar.Abs<U> round()
round in interface MathFunctionsAbs<DoubleScalar.Abs<U extends Unit<U>>>public DoubleScalar.Abs<U> multiplyBy(double constant)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>constant - double; the multiplierpublic DoubleScalar.Abs<U> divideBy(double constant)
divideBy in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>constant - double; the divisorCopyright © 2015–2016 Delft University of Technology. All rights reserved.