U - Unitpublic static class FloatScalar.Rel<U extends Unit<U>> extends FloatScalar<U> implements Relative, Comparable<FloatScalar.Rel<U>>, MathFunctionsRel<FloatScalar.Rel<U>>
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>| Modifier and Type | Field and Description |
|---|---|
float |
si
The value, stored in the standard SI unit.
|
| Constructor and Description |
|---|
Rel(FloatScalar.Rel<U> value)
Construct a new Relative Immutable FloatScalar from an existing Relative Immutable FloatScalar.
|
Rel(float value,
U unit)
Construct a new Relative Immutable FloatScalar.
|
| Modifier and Type | Method and Description |
|---|---|
FloatScalar.Rel<U> |
abs()
Set the value(s) to their absolute value.
|
FloatScalar.Rel<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(FloatScalar.Rel<U> o) |
FloatScalar.Rel<U> |
divideBy(float constant)
Scale the value(s) by the inverse of a factor; i.e.
|
boolean |
eq(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is equal to a FloatScalar.Rel<U>.
|
FloatScalar.Rel<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(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than a FloatScalar.Rel<U>.
|
float |
getSI()
Retrieve the value in the underlying SI unit.
|
boolean |
gt(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than or equal to a FloatScalar.Rel<U>.
|
boolean |
le(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than or equal to a FloatScalar.Rel<U>.
|
boolean |
lt(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than a FloatScalar.Rel<U>.
|
FloatScalar.Rel<U> |
minus(FloatScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
FloatScalar.Rel<U> |
multiplyBy(float constant)
Scale the value(s) by a factor.
|
boolean |
ne(FloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is not equal to a FloatScalar.Rel<U>.
|
FloatScalar.Rel<U> |
plus(FloatScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
FloatScalar.Rel<U> |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
FloatScalar.Rel<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 Rel(float value,
U unit)
value - float; the value of the new Relative Immutable FloatScalarunit - U; the unit of the new Relative Immutable FloatScalarpublic Rel(FloatScalar.Rel<U> value)
value - FloatScalar.Rel<U>; the referencepublic final int compareTo(FloatScalar.Rel<U> o)
compareTo in interface Comparable<FloatScalar.Rel<U extends Unit<U>>>public final float getSI()
getSI in class FloatScalar<U extends Unit<U>>public final boolean lt(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean le(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean gt(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean ge(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean eq(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean ne(FloatScalar.Rel<U> o)
o - FloatScalar.Rel<U>; the right hand side operand of the comparisonpublic final FloatScalar.Rel<U> plus(FloatScalar.Rel<U> increment)
increment - FloatScalar.Rel<U>; amount by which the value is incrementedpublic final FloatScalar.Rel<U> minus(FloatScalar.Rel<U> decrement)
decrement - FloatScalar.Rel<U>; amount by which the value is decrementedpublic FloatScalar.Rel<U> abs()
abs in interface MathFunctionsRel<FloatScalar.Rel<U extends Unit<U>>>public FloatScalar.Rel<U> ceil()
ceil in interface MathFunctionsAbs<FloatScalar.Rel<U extends Unit<U>>>public FloatScalar.Rel<U> floor()
floor in interface MathFunctionsAbs<FloatScalar.Rel<U extends Unit<U>>>public FloatScalar.Rel<U> rint()
rint in interface MathFunctionsAbs<FloatScalar.Rel<U extends Unit<U>>>public FloatScalar.Rel<U> round()
round in interface MathFunctionsAbs<FloatScalar.Rel<U extends Unit<U>>>public FloatScalar.Rel<U> multiplyBy(float constant)
multiplyBy in interface FloatMathFunctions<FloatScalar<U extends Unit<U>>>constant - float; the multiplierpublic FloatScalar.Rel<U> divideBy(float constant)
divideBy in interface FloatMathFunctions<FloatScalar<U extends Unit<U>>>constant - float; the divisorCopyright © 2015–2016 Delft University of Technology. All rights reserved.