U - Unitpublic static class DoubleScalar.Rel<U extends Unit<U>> extends DoubleScalar<U> implements Relative, Comparable<DoubleScalar.Rel<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 |
|---|
Rel(DoubleScalar.Rel<U> value)
Construct a new Relative Immutable DoubleScalar from an existing Relative Immutable DoubleScalar.
|
Rel(double value,
U unit)
Construct a new Relative Immutable DoubleScalar.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<U> |
abs()
Set the value(s) to their absolute value.
|
DoubleScalar.Rel<U> |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
DoubleScalar.Rel<U> |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
DoubleScalar.Rel<U> |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
DoubleScalar.Rel<U> |
cbrt()
Set the value(s) to the(ir) cube root.
|
DoubleScalar.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(DoubleScalar.Rel<U> o) |
DoubleScalar.Rel<U> |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
DoubleScalar.Rel<U> |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
DoubleScalar.Rel<U> |
divideBy(double constant)
Scale the value(s) by the inverse of a factor; i.e.
|
boolean |
eq(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is equal to a DoubleScalar.Rel<U>.
|
DoubleScalar.Rel<U> |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
DoubleScalar.Rel<U> |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
DoubleScalar.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(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than a DoubleScalar.Rel<U>.
|
double |
getSI()
Retrieve the value in the underlying SI unit.
|
boolean |
gt(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is greater than or equal to a DoubleScalar.Rel<U>.
|
DoubleScalar.Rel<U> |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
boolean |
le(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than or equal to a DoubleScalar.Rel<U>.
|
DoubleScalar.Rel<U> |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
DoubleScalar.Rel<U> |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
DoubleScalar.Rel<U> |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
boolean |
lt(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is less than a DoubleScalar.Rel<U>.
|
DoubleScalar.Rel<U> |
minus(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
DoubleScalar.Rel<U> |
multiplyBy(double constant)
Scale the value(s) by a factor.
|
boolean |
ne(DoubleScalar.Rel<U> o)
Test if this DoubleScalar.Rel<U> is not equal to a DoubleScalar.Rel<U>.
|
DoubleScalar.Rel<U> |
plus(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
DoubleScalar.Rel<U> |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
DoubleScalar.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.
|
DoubleScalar.Rel<U> |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
DoubleScalar.Rel<U> |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
DoubleScalar.Rel<U> |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
DoubleScalar.Rel<U> |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
DoubleScalar.Rel<U> |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
DoubleScalar.Rel<U> |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
DoubleScalar.Rel<U> |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
DoubleScalar.Rel<U> |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
DoubleScalar.Rel<U> |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
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, shortValuepublic Rel(double value,
U unit)
value - double; the value of the new Relative Immutable DoubleScalarunit - U; the unit of the new Relative Immutable DoubleScalarpublic Rel(DoubleScalar.Rel<U> value)
value - DoubleScalar.Rel<U>; the referencepublic final int compareTo(DoubleScalar.Rel<U> o)
compareTo in interface Comparable<DoubleScalar.Rel<U extends Unit<U>>>public final double getSI()
getSI in class DoubleScalar<U extends Unit<U>>public final boolean lt(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean le(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean gt(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean ge(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean eq(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final boolean ne(DoubleScalar.Rel<U> o)
o - DoubleScalar.Rel<U>; the right hand side operand of the comparisonpublic final DoubleScalar.Rel<U> plus(DoubleScalar.Rel<U> increment)
increment - DoubleScalar.Rel<U>; amount by which the value is incrementedpublic final DoubleScalar.Rel<U> minus(DoubleScalar.Rel<U> decrement)
decrement - DoubleScalar.Rel<U>; amount by which the value is decrementedpublic DoubleScalar.Rel<U> abs()
abs in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> acos()
acos in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> asin()
asin in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> atan()
atan in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> cbrt()
cbrt in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> ceil()
ceil in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> cos()
cos in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> cosh()
cosh in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> exp()
exp in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> expm1()
expm1 in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> floor()
floor in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> log()
log in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> log10()
log10 in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> log1p()
log1p in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> pow(double x)
pow in interface MathFunctions<DoubleScalar<U extends Unit<U>>>x - double; the value to use as the powerpublic DoubleScalar.Rel<U> rint()
rint in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> round()
round in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> signum()
signum in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> sin()
sin in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> sinh()
sinh in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> sqrt()
sqrt in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> tan()
tan in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> tanh()
tanh in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> toRadians()
toRadians in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> inv()
inv in interface MathFunctions<DoubleScalar<U extends Unit<U>>>public DoubleScalar.Rel<U> multiplyBy(double constant)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>constant - double; the multiplierpublic DoubleScalar.Rel<U> divideBy(double constant)
divideBy in interface DoubleMathFunctions<DoubleScalar<U extends Unit<U>>>constant - double; the divisorCopyright © 2015 Delft University of Technology. All rights reserved.