Class AbstractFloatVectorAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends AbstractFloatScalarAbs<AU,​A,​RU,​R>,​AV extends AbstractFloatVectorAbs<AU,​A,​AV,​RU,​R,​RV>,​RU extends Unit<RU>,​R extends AbstractFloatScalarRelWithAbs<AU,​A,​RU,​R>,​RV extends AbstractFloatVectorRelWithAbs<AU,​A,​AV,​RU,​R,​RV>>

    • Constructor Detail

      • AbstractFloatVectorAbs

        protected AbstractFloatVectorAbs​(FloatVectorData data,
                                         AU unit)
        Construct a new Relative Mutable FloatVector.
        Parameters:
        data - FloatVectorData; an internal data object
        unit - AU; the unit
    • Method Detail

      • decrementBy

        public AV decrementBy​(R decrement)
        Decrement all values of this vector by the decrement. This only works if the vector is mutable.
        Parameters:
        decrement - R; the scalar by which to decrement all values
        Returns:
        AV; this modified vector
        Throws:
        ValueRuntimeException - in case this vector is immutable
      • decrementBy

        public AV decrementBy​(RV decrement)
        Decrement all values of this vector by the decrement on a value by value basis. This only works if this vector is mutable.
        Parameters:
        decrement - RV; the vector that contains the values by which to decrement the corresponding values
        Returns:
        AV; this modified vector
        Throws:
        ValueRuntimeException - in case this vector is immutable or when the sizes of the vectors differ
      • instantiateVectorRel

        public abstract RV instantiateVectorRel​(FloatVectorData dvd,
                                                RU displayUnit)
        Instantiate a new relative vector of the class of this absolute vector. This can be used instead of the FloatVector.instiantiate() methods in case another vector of this absolute vector class is known. The method is faster than FloatVector.instantiate, and it will also work if the vector is user-defined.
        Parameters:
        dvd - FloatVectorData; the data used to instantiate the vector
        displayUnit - RU; the display unit of the relative vector
        Returns:
        RV; a relative vector of the correct type, belonging to this absolute vector type
      • instantiateScalarRelSI

        public abstract R instantiateScalarRelSI​(float valueSI,
                                                 RU displayUnit)
        Instantiate a new relative scalar for the class of this absolute vector. This can be used instead of the FloatScalar.instiantiate() methods in case a vector of this class is known. The method is faster than FloatScalar.instantiate, and it will also work if the vector and/or scalar are user-defined.
        Parameters:
        valueSI - float; the SI value of the relative scalar
        displayUnit - RU; the unit in which the relative value will be displayed
        Returns:
        R; a relative scalar of the correct type, belonging to this absolute vector type