public abstract class FloatScalar extends Object
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version 26 jun, 2015
Modifier and Type | Class and Description |
---|---|
static class |
FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>
Absolute Immutable FloatScalar.
|
static class |
FloatScalar.Rel<U extends Unit<U>>
Relative Immutable FloatScalar.
|
Constructor and Description |
---|
FloatScalar() |
Modifier and Type | Method and Description |
---|---|
static FloatScalar.Rel<SIUnit> |
divide(AbstractFloatScalarRel<?,?> left,
AbstractFloatScalarRel<?,?> right)
Divide two values; the result is a new instance with a different (existing or generated) SI unit.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> |
interpolate(A zero,
A one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> |
interpolate(FloatScalar.Abs<AU,RU> zero,
FloatScalar.Abs<AU,RU> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatScalar.Rel<U> zero,
FloatScalar.Rel<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> |
interpolate(R zero,
R one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> |
minus(A left,
A right)
Subtract two absolute values.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> |
minus(A left,
R right)
Subtract a Relative value from an absolute value.
|
static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> |
minus(R left,
R right)
Subtract a relative value from a relative value.
|
static FloatScalar.Rel<SIUnit> |
multiply(AbstractFloatScalarRel<?,?> left,
AbstractFloatScalarRel<?,?> right)
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> |
plus(A left,
R right)
Add a Relative value to an Absolute value.
|
static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> |
plus(R left,
A right)
Add an Absolute value to a Relative value.
|
static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> |
plus(R left,
R right)
Add a Relative value to a Relative value.
|
public static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> A plus(A left, R right)
AU
- Unit; the absolute unit of the parameter and the resultRU
- Unit; the relative unit of the parameterR
- the relative typeA
- the corresponding absolute typeleft
- A, an absolute typed FloatScalar; the left argumentright
- R, a relative typed FloatScalar; the right argumentpublic static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> A plus(R left, A right)
AU
- Unit; the absolute unit of the parameter and the resultRU
- Unit; the relative unit of the parameterR
- the relative typeA
- the corresponding absolute typeleft
- A, an absolute typed FloatScalar; the left argumentright
- R, a relative typed FloatScalar; the right argumentpublic static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> R plus(R left, R right)
U
- Unit; the unit of the parameters and the resultR
- the relative typeleft
- R, a relative typed FloatScalar; the left argumentright
- R, a relative typed FloatScalar; the right argumentpublic static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> A minus(A left, R right)
AU
- Unit; the absolute unit of the parameter and the resultRU
- Unit; the relative unit of the parameterR
- the relative typeA
- the corresponding absolute typeleft
- A, an absolute typed FloatScalar; the left valueright
- R, a relative typed FloatScalar; the right valuepublic static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> R minus(R left, R right)
U
- Unit; the unit of the parameters and the resultR
- the relative typeleft
- R, a relative typed FloatScalar; the left valueright
- R, a relative typed FloatScalar; the right valuepublic static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> R minus(A left, A right)
AU
- Unit; the absolute unit of the parameterRU
- Unit; the relative unit of the parameter and the resultR
- the relative typeA
- the corresponding absolute typeleft
- A, an absolute typed FloatScalar; value 1right
- A, an absolute typed FloatScalar; value 2public static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>,A extends AbstractFloatScalarAbs<AU,A,RU,R>> A interpolate(A zero, A one, float ratio)
AU
- Unit; the absolute unit of the parameter and the resultRU
- Unit; the relative unit belonging to the absolute unitR
- the relative typeA
- the corresponding absolute typezero
- A, an absolute typed FloatScalar; zero reference (returned when ratio == 0)one
- A, an absolute typed FloatScalar; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liespublic static <U extends Unit<U>,R extends AbstractFloatScalarRel<U,R>> R interpolate(R zero, R one, float ratio)
U
- Unit; the unit of the parameters and the resultR
- the relative typezero
- R, a relative typed FloatScalar; zero reference (returned when ratio == 0)one
- R, a relative typed FloatScalar; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liespublic static FloatScalar.Rel<SIUnit> multiply(AbstractFloatScalarRel<?,?> left, AbstractFloatScalarRel<?,?> right)
left
- AbstractFloatScalarRel<?, ?>; the left operandright
- AbstractFloatScalarRel<?, ?>; the right operandpublic static FloatScalar.Rel<SIUnit> divide(AbstractFloatScalarRel<?,?> left, AbstractFloatScalarRel<?,?> right)
left
- AbstractFloatScalarRel<?, ?>; the left operandright
- AbstractFloatScalarRel<?, ?>; the right operandpublic static <AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> FloatScalar.Abs<AU,RU> interpolate(FloatScalar.Abs<AU,RU> zero, FloatScalar.Abs<AU,RU> one, float ratio)
AU
- Unit; the absolute unit of the parameter and the resultRU
- Unit; the relative unit belonging to the absolute unitzero
- FloatScalar.Abs<AU, RU>; zero reference (returned when ratio == 0)one
- FloatScalar.Abs<AU, RU>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liespublic static <U extends Unit<U>> FloatScalar.Rel<U> interpolate(FloatScalar.Rel<U> zero, FloatScalar.Rel<U> one, float ratio)
U
- Unit; the unit of the parameters and the resultzero
- FloatScalar.Rel<U>; zero reference (returned when ratio == 0)one
- FloatScalar.Rel<U>; one reference (returned when ratio == 1)ratio
- float; the ratio that determines where between (or outside) zero and one the result liesCopyright © 2015–2019 Delft University of Technology. All rights reserved.