| Package | Description |
|---|---|
| org.opentrafficsim.core.value.vfloat.scalar |
Float Scalar storage and calculations with units, absolute/relative.
|
| Modifier and Type | Method and Description |
|---|---|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.abs()
Set the value(s) to their absolute value.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.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.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.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.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.cbrt()
Set the value(s) to the(ir) cube root.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.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.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.copy()
Create a deep copy of this Value.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.decrementBy(FloatScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
static MutableFloatScalar.Rel<SIUnit> |
FloatScalar.divide(FloatScalar.Rel<?> left,
FloatScalar.Rel<?> right)
Divide two values; the result is a new instance with a different (existing or generated) SI unit.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.divideBy(float constant)
Scale the value(s) by the inverse of a factor; i.e.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.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.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.incrementBy(FloatScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
static <U extends Unit<U>> |
FloatScalar.interpolate(FloatScalar.Rel<U> zero,
FloatScalar.Rel<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
static <U extends Unit<U>> |
FloatScalar.minus(FloatScalar.Abs<U> valueAbs1,
FloatScalar.Abs<U> valueAbs2)
Subtract two absolute values.
|
static <U extends Unit<U>> |
FloatScalar.minus(FloatScalar.Rel<U> left,
FloatScalar.Rel<U> right)
Subtract a relative value from a relative value.
|
static MutableFloatScalar.Rel<SIUnit> |
FloatScalar.multiply(FloatScalar.Rel<?> left,
FloatScalar.Rel<?> right)
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.multiplyBy(float constant)
Scale the value(s) by a factor.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.mutable()
Create a mutable version of this FloatScalar.
|
MutableFloatScalar.Rel<U> |
FloatScalar.Rel.mutable()
Create a mutable version of this FloatScalar.
|
static <U extends Unit<U>> |
FloatScalar.plus(FloatScalar.Rel<U> left,
FloatScalar.Rel<U> right)
Add a Relative value to a Relative value.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.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.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MutableFloatScalar.Rel<U> |
MutableFloatScalar.Rel.toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MutableFloatScalar.Rel.compareTo(MutableFloatScalar.Rel<U> o) |
boolean |
MutableFloatScalar.Rel.eq(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is equal to a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.eq(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is equal to a MutableFloatScalar.Rel<U>.
|
boolean |
MutableFloatScalar.Rel.ge(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.ge(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than a MutableFloatScalar.Rel<U>.
|
boolean |
MutableFloatScalar.Rel.gt(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than or equal to a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.gt(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is greater than or equal to a MutableFloatScalar.Rel<U>.
|
boolean |
MutableFloatScalar.Rel.le(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than or equal to a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.le(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than or equal to a MutableFloatScalar.Rel<U>.
|
boolean |
MutableFloatScalar.Rel.lt(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.lt(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is less than a MutableFloatScalar.Rel<U>.
|
boolean |
MutableFloatScalar.Rel.ne(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is not equal to a MutableFloatScalar.Rel<U>.
|
boolean |
FloatScalar.Rel.ne(MutableFloatScalar.Rel<U> o)
Test if this FloatScalar.Rel<U> is not equal to a MutableFloatScalar.Rel<U>.
|
| Constructor and Description |
|---|
Rel(MutableFloatScalar.Rel<U> value)
Construct a new Relative MutableFloatScalar from an existing Relative MutableFloatScalar.
|
Rel(MutableFloatScalar.Rel<U> value)
Construct a new Relative Immutable FloatScalar from an existing Relative MutableFloatScalar.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.