Uses of Interface
org.djunits.unit.Unit

Packages that use Unit
Package
Description
Methods to format quantity-related values for display.
The quantity package stores information about quantities with their units.
Definition classes for quantities.
Base classes to encode and store units.
The org.djunits.si package contains classes that can work with and manipulate SI prefixes and SI dimensions.
Generic functions for Quantity, Vector and Matrix.
1-element vector and matrix classes with a unit.
2-element vector and matrix classes with a unit.
3-element vector and matrix classes with a unit.
Definition classes for vectors and matrices.
Square matrix implementations with dimension N.
Rectangular matrix implementations with dimension NxM.
Storage objects for larger vectors and matrices (dense/sparse, double/float).
Two-dimensonal tables with quantities.
  • Uses of Unit in org.djunits.formatter

    Fields in org.djunits.formatter declared as Unit
    Modifier and Type
    Field
    Description
    (package private) Unit<?,?>
    FormatContext.displayUnit
    Display unit to use.
    (package private) Unit<?,?>
    Formatter.unit
    the unit to express the value in.
    Methods in org.djunits.formatter with parameters of type Unit
    Modifier and Type
    Method
    Description
    Format.setDisplayUnit(Unit<?,?> unit)
    Set the display unit to use.
  • Uses of Unit in org.djunits.quantity

    Classes in org.djunits.quantity that implement Unit
    Modifier and Type
    Class
    Description
    static class 
    AbsorbedDose.Unit encodes the units of absorbed dose (of ionizing radiation).
    static class 
    Acceleration.Unit encodes the units of acceleration.
    static class 
    AmountOfSubstance.Unit encodes the units of amount of substance (base unit is mol).
    static class 
    Angle.Unit encodes the units of angle (radians, degrees).
    static class 
    AngularAcceleration.Unit encodes the units of angle (radians or degrees per second squared).
    static class 
    AngularVelocity.Unit encodes the units of angle (radians, degrees).
    static class 
    Area.Unit encodes the area unit (length x length).
    static class 
    ArealObjectDensity.Unit encodes the unit for number of objects per unit of area.
    static class 
    CatalyticActivity.Unit encodes the units of the speed of a chamical reaction, and is expressed in mol/s.
    static class 
    Density.Unit encodes the units of density based on mass per volume.
    static class 
    Duration.Unit encodes the units of relative time.
    static class 
    ElectricalCapacitance.Unit encodes the units of capacitance (in farad).
    static class 
    ElectricalConductance.Unit encodes the units of electrical conductance, and is expressed in Siemens.
    static class 
    ElectricalInductance.Unit encodes the units of electromagnetic inductance.
    static class 
    ElectricalResistance.Unit encodes the opposition to the flow of electric current.
    static class 
    ElectricCharge.Unit is a unit of electric charge and is expressed in Coulomb.
    static class 
    ElectricCurrent.Unit encodes the units of electric current (A).
    static class 
    ElectricPotential.Unit encodes the units of electric potential (difference)
    static class 
    Energy.Unit encodes the units of energy.
    static class 
    EquivalentDose.Unit encodes the unit of radiation exposure.
    static class 
    FlowMass.Unit encodes the units of mass flow.
    static class 
    FlowVolume.Unit encodes the units of volume flow.
    static class 
    Force.Unit encodes the units of force.
    static class 
    Frequency.Unit encodes the units of frequency.
    static class 
    Illuminance.Unit encodes the units of illuminance.
    static class 
    Length.Unit encodes the length unit.
    static class 
    LinearDensity.Unit encodes unit for mass per unit length.
    static class 
    LinearObjectDensity.Unit encodes the unit for the number of objects per unit of length.
    static class 
    LuminousFlux.Unit encodes the units of total perceived power of light emitted by a source.
    static class 
    LuminousIntensity.Unit encodes the units of luminous flux emitted per unit solid angle.
    static class 
    MagneticFlux.Unit encodes the units of total magnetic field passing through a given area.
    static class 
    MagneticFluxDensity.Unit encodes the units of strength of the magnetic field per unit area.
    static class 
    Mass.Unit encodes the unit of the amount of matter in an object.
    static class 
    Momentum.Unit encodes a unit for the product of an object's mass and velocity.
    static class 
    Power.Unit encodes the units for the rate of energy transfer or work done per unit time.
    static class 
    Pressure.Unit encodes the units of force exerted per unit area.
    static class 
    RadioActivity.Unit encodes the units of radioactivity.
    static class 
    SolidAngle.Unit encodes the units of solid angles.
    static class 
    Speed.Unit encodes the units of the rate of change of a position over time.
    static class 
    Temperature.Unit encodes the units of relative and absolute temperature.
    static class 
    Torque.Unit encodes the units of rotational force about an axis, measured in newton meters (Nm).
    static class 
    Volume.Unit encodes the volume unit (length x length x length).
    static class 
    VolumetricObjectDensity.Unit encodes the unit for number of objects per unit of volume.
  • Uses of Unit in org.djunits.quantity.def

    Methods in org.djunits.quantity.def that return Unit
    Modifier and Type
    Method
    Description
    Unit<?,Q>
    AbsQuantity.getDisplayUnit()
     
    Unit<?,Q>
    Quantity.getDisplayUnit()
     
    Methods in org.djunits.quantity.def with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    TQ
    Quantity.as(Unit<?,TQ> targetUnit)
    Return the quantity 'as' a known quantity, using a unit to express the result in.
    AbsQuantity.format(Unit<?,Q> targetUnit)
    String representation of this quantity, expressed in the specified unit.
    Quantity.format(Unit<?,Q> targetUnit)
    String representation of this quantity, expressed in the specified unit.
    final double
    AbsQuantity.getInUnit(Unit<?,Q> targetUnit)
    Retrieve the relative quantity value converted into some specified unit.
    final double
    Quantity.getInUnit(Unit<?,Q> targetUnit)
    Retrieve the value converted into some specified unit.
    Quantity.instantiate(double valueInUnit, Unit<?,Q> unit)
    Instantiate a quantity with a value and a unit.
    AbsQuantity.setDisplayUnit(Unit<?,Q> newUnit)
     
    Quantity.setDisplayUnit(Unit<?,Q> newUnit)
     
    Constructors in org.djunits.quantity.def with parameters of type Unit
    Modifier
    Constructor
    Description
     
    Quantity(double valueInUnit, Unit<?,Q> unit)
    Instantiate a quantity with a value and a display unit.
  • Uses of Unit in org.djunits.unit

    Classes in org.djunits.unit with type parameters of type Unit
    Modifier and Type
    Class
    Description
    class 
    AbstractUnit<U extends Unit<U,Q>,Q extends Quantity<Q>>
    The AbstractUnit is the parent class of all units, and encodes the common behavior of the units.
    interface 
    Unit<U extends Unit<U,Q>,Q extends Quantity<Q>>
    UnitInterface defines the contract for a unit.
    Classes in org.djunits.unit that implement Unit
    Modifier and Type
    Class
    Description
    class 
    AbstractUnit<U extends Unit<U,Q>,Q extends Quantity<Q>>
    The AbstractUnit is the parent class of all units, and encodes the common behavior of the units.
    class 
    Unitless encodes a unit without dimensions, e.g., to encode a constant.
    Methods in org.djunits.unit with type parameters of type Unit
    Modifier and Type
    Method
    Description
    static <U extends Unit<?, ?>>
    U
    Units.resolve(Class<U> unitClass, String abbreviation)
    Look up a unit in the registry, based on its textual abbreviation.
    Methods in org.djunits.unit that return types with arguments of type Unit
    Modifier and Type
    Method
    Description
    static Map<String,Map<String,Unit<?,?>>>
    Return a safe copy of the registered units, e.g. to build pick lists in a user interface.
    Methods in org.djunits.unit with parameters of type Unit
    Modifier and Type
    Method
    Description
    static void
    Units.register(Unit<?,?> unit)
    Register a unit so it can be found based on its textual abbreviations.
    static void
    Units.unregister(Unit<?,?> unit)
    Unregister a unit, e.g. in a unit test.
    Method parameters in org.djunits.unit with type arguments of type Unit
    Modifier and Type
    Method
    Description
    static String
    Units.localizedQuantityName(Class<? extends Unit<?,?>> unitClass)
    Get the localized unit name for a unit class.
  • Uses of Unit in org.djunits.unit.si

    Classes in org.djunits.unit.si that implement Unit
    Modifier and Type
    Class
    Description
    class 
    SIUnit stores the dimensionality of a unit using the SI standards.
  • Uses of Unit in org.djunits.value

    Methods in org.djunits.value that return Unit
    Modifier and Type
    Method
    Description
    Unit<?,Q>
    Retrieve the unit of this Value.
    Methods in org.djunits.value with parameters of type Unit
    Modifier and Type
    Method
    Description
    Value.format(Unit<?,Q> displayUnit)
    Return a description of this value with the values expressed in the specified unit.
    Value.setDisplayUnit(Unit<?,Q> newUnit)
    Set a new display unit for the value.
  • Uses of Unit in org.djunits.vecmat.d1

    Methods in org.djunits.vecmat.d1 with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    Matrix1x1<TQ>
    Matrix1x1.as(Unit<?,TQ> targetUnit)
    Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    Vector1<TQ>
    Vector1.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix1x1<A,Q>
    AbsMatrix1x1.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix1x1 with a unit, based on a 2-dimensional grid.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix1x1<A,Q>
    AbsMatrix1x1.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix1x1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix1x1<A,Q>
    AbsMatrix1x1.of(double xInUnit, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix1x1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector1<A,Q>
    AbsVector1.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create an AbsVector1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector1<A,Q>
    AbsVector1.of(double xInUnit, Unit<?,Q> unit, R reference)
    Create an AbsVector1 without needing generics.
    static <Q extends Quantity<Q>>
    Matrix1x1<Q>
    Matrix1x1.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new Matrix1x1 with a unit, based on a 2-dimensional grid.
    static <Q extends Quantity<Q>>
    Matrix1x1<Q>
    Matrix1x1.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Matrix1x1 without needing generics.
    static <Q extends Quantity<Q>>
    Matrix1x1<Q>
    Matrix1x1.of(double xInUnit, Unit<?,Q> unit)
    Create a Matrix1x1 without needing generics.
    static <Q extends Quantity<Q>>
    Vector1<Q>
    Vector1.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Vector1 without needing generics.
    static <Q extends Quantity<Q>>
    Vector1<Q>
    Vector1.of(double xInUnit, Unit<?,Q> unit)
    Create a Vector1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix1x1<A,Q>
    AbsMatrix1x1.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix1x1 with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix1x1<A,Q>
    AbsMatrix1x1.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix1x1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector1<A,Q>
    AbsVector1.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsVector1 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector1<A,Q>
    AbsVector1.ofSi(double xSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsVector1 without needing generics.
    static <Q extends Quantity<Q>>
    Matrix1x1<Q>
    Matrix1x1.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new Matrix1x1 with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    Matrix1x1<Q>
    Matrix1x1.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Matrix1x1 without needing generics.
    static <Q extends Quantity<Q>>
    Vector1<Q>
    Vector1.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Vector1 without needing generics.
    static <Q extends Quantity<Q>>
    Vector1<Q>
    Vector1.ofSi(double xSi, Unit<?,Q> displayUnit)
    Create a Vector1 without needing generics.
    Constructors in org.djunits.vecmat.d1 with parameters of type Unit
    Modifier
    Constructor
    Description
    protected
    Matrix1x1(double[] dataSi, Unit<?,Q> displayUnit)
    Create a new Matrix1x1 with a display unit.
     
    Vector1(double xSi, Unit<?,Q> displayUnit)
    Create a new Vector1 with a display unit.
  • Uses of Unit in org.djunits.vecmat.d2

    Methods in org.djunits.vecmat.d2 with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    Matrix2x2<TQ>
    Matrix2x2.as(Unit<?,TQ> targetUnit)
    Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    Vector2.Col<TQ>
    Vector2.Col.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    Vector2.Row<TQ>
    Vector2.Row.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix2x2<A,Q>
    AbsMatrix2x2.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix2x2 with a unit, based on a 2-dimensional grid.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix2x2<A,Q>
    AbsMatrix2x2.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix2x2 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Col<A,Q>
    AbsVector2.Col.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector2.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Col<A,Q>
    AbsVector2.Col.of(double xInUnit, double yInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector2.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Row<A,Q>
    AbsVector2.Row.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector2.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Row<A,Q>
    AbsVector2.Row.of(double xInUnit, double yInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector2.Row without needing generics.
    static <Q extends Quantity<Q>>
    Matrix2x2<Q>
    Matrix2x2.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new Matrix2x2 with a unit, based on a 2-dimensional grid with values in the given unit.
    static <Q extends Quantity<Q>>
    Matrix2x2<Q>
    Matrix2x2.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a new Matrix2x2 with a unit, based on a row-major array with values in the given unit.
    static <Q extends Quantity<Q>>
    Vector2.Col<Q>
    Vector2.Col.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Vector2.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Col<Q>
    Vector2.Col.of(double xInUnit, double yInUnit, Unit<?,Q> unit)
    Create a Vector2.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Row<Q>
    Vector2.Row.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Vector2.Row without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Row<Q>
    Vector2.Row.of(double xInUnit, double yInUnit, Unit<?,Q> unit)
    Create a Vector2.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix2x2<A,Q>
    AbsMatrix2x2.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix2x2 with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix2x2<A,Q>
    AbsMatrix2x2.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix2x2 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Col<A,Q>
    AbsVector2.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector2.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Col<A,Q>
    AbsVector2.Col.ofSi(double xSi, double ySi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector2.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Row<A,Q>
    AbsVector2.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector2.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector2.Row<A,Q>
    AbsVector2.Row.ofSi(double xSi, double ySi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector2.Row without needing generics.
    static <Q extends Quantity<Q>>
    Matrix2x2<Q>
    Matrix2x2.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new Matrix2x2 with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    Matrix2x2<Q>
    Matrix2x2.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Matrix2x2 without needing generics, based on a row-major array with SI-values.
    static <Q extends Quantity<Q>>
    Vector2.Col<Q>
    Vector2.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Vector2.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Col<Q>
    Vector2.Col.ofSi(double xSi, double ySi, Unit<?,Q> displayUnit)
    Create a Vector2.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Row<Q>
    Vector2.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Vector2.Row without needing generics.
    static <Q extends Quantity<Q>>
    Vector2.Row<Q>
    Vector2.Row.ofSi(double xSi, double ySi, Unit<?,Q> displayUnit)
    Create a Vector2.Row without needing generics.
    Constructors in org.djunits.vecmat.d2 with parameters of type Unit
    Modifier
    Constructor
    Description
     
    Col(double xSi, double ySi, Unit<?,Q> displayUnit)
    Create a new 2 column vector with a display unit.
    protected
    Matrix2x2(double[] dataSi, Unit<?,Q> displayUnit)
    Create a new Matrix2x2 with a unit.
     
    Row(double xSi, double ySi, Unit<?,Q> displayUnit)
    Create a new 2 row vector with a unit.
    protected
    Vector2(double xSi, double ySi, Unit<?,Q> displayUnit)
    Create a new Vector2 with a display unit.
  • Uses of Unit in org.djunits.vecmat.d3

    Methods in org.djunits.vecmat.d3 with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    Matrix3x3<TQ>
    Matrix3x3.as(Unit<?,TQ> targetUnit)
    Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    Vector3.Col<TQ>
    Vector3.Col.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    Vector3.Row<TQ>
    Vector3.Row.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix3x3<A,Q>
    AbsMatrix3x3.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix3x3 with a unit, based on a 2-dimensional grid.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix3x3<A,Q>
    AbsMatrix3x3.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrix3x3 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Col<A,Q>
    AbsVector3.Col.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector3.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Col<A,Q>
    AbsVector3.Col.of(double xInUnit, double yInUnit, double zInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector3.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Row<A,Q>
    AbsVector3.Row.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector3.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Row<A,Q>
    AbsVector3.Row.of(double xInUnit, double yInUnit, double zInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVector3.Row without needing generics.
    static <Q extends Quantity<Q>>
    Matrix3x3<Q>
    Matrix3x3.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new Matrix3x3 with a unit, based on a 2-dimensional grid with values in the given unit.
    static <Q extends Quantity<Q>>
    Matrix3x3<Q>
    Matrix3x3.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a new Matrix3x3 with a unit, based on a row-major array with values in the given unit.
    static <Q extends Quantity<Q>>
    Vector3.Col<Q>
    Vector3.Col.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Vector3.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Col<Q>
    Vector3.Col.of(double xInUnit, double yInUnit, double zInUnit, Unit<?,Q> unit)
    Create a Vector3.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Row<Q>
    Vector3.Row.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a Vector3.Row without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Row<Q>
    Vector3.Row.of(double xInUnit, double yInUnit, double zInUnit, Unit<?,Q> unit)
    Create a Vector3.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix3x3<A,Q>
    AbsMatrix3x3.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix3x3 with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrix3x3<A,Q>
    AbsMatrix3x3.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrix3x3 without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Col<A,Q>
    AbsVector3.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector3.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Col<A,Q>
    AbsVector3.Col.ofSi(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector3.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Row<A,Q>
    AbsVector3.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector3.Row without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVector3.Row<A,Q>
    AbsVector3.Row.ofSi(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVector3.Row without needing generics.
    static <Q extends Quantity<Q>>
    Matrix3x3<Q>
    Matrix3x3.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new Matrix3x3 with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    Matrix3x3<Q>
    Matrix3x3.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Matrix3x3 without needing generics, based on a row-major array with SI-values.
    static <Q extends Quantity<Q>>
    Vector3.Col<Q>
    Vector3.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Vector3.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Col<Q>
    Vector3.Col.ofSi(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit)
    Create a Vector3.Col without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Row<Q>
    Vector3.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a Vector3.Row without needing generics.
    static <Q extends Quantity<Q>>
    Vector3.Row<Q>
    Vector3.Row.ofSi(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit)
    Create a Vector3.Row without needing generics.
    Constructors in org.djunits.vecmat.d3 with parameters of type Unit
    Modifier
    Constructor
    Description
     
    Col(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit)
    Create a new 3 column vector with a display unit.
    protected
    Matrix3x3(double[] dataSi, Unit<?,Q> displayUnit)
    Create a new Matrix3x3 with a unit.
     
    Row(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit)
    Create a new 3 row vector with a display unit.
    protected
    Vector3(double xSi, double ySi, double zSi, Unit<?,Q> displayUnit)
    Create a new Vector3 with a display unit.
  • Uses of Unit in org.djunits.vecmat.def

    Methods in org.djunits.vecmat.def that return Unit
    Modifier and Type
    Method
    Description
    Unit<?,Q>
    AbsVectorMatrix.getDisplayUnit()
     
    Unit<?,Q>
    VectorMatrix.getDisplayUnit()
     
    Methods in org.djunits.vecmat.def with parameters of type Unit
    Modifier and Type
    Method
    Description
    AbsMatrix.format(Unit<?,Q> targetUnit)
    String representation of this matrix, expressed in the specified unit.
    default String
    AbsVector.Col.format(Unit<?,Q> targetUnit)
    String representation of this vector, expressed in the specified unit.
    default String
    AbsVector.Row.format(Unit<?,Q> targetUnit)
    String representation of this vector, expressed in the specified unit.
    Matrix.format(Unit<?,Q> targetUnit)
    String representation of this matrix, expressed in the specified unit.
    default String
    Vector.Col.format(Unit<?,Q> targetUnit)
    String representation of this vector, expressed in the specified unit.
    default String
    Vector.Row.format(Unit<?,Q> targetUnit)
    String representation of this vector, expressed in the specified unit.
    AbsVectorMatrix.setDisplayUnit(Unit<?,Q> newUnit)
     
    VectorMatrix.setDisplayUnit(Unit<?,Q> newUnit)
     
    Constructors in org.djunits.vecmat.def with parameters of type Unit
    Modifier
    Constructor
    Description
     
    Matrix(Unit<?,Q> displayUnit)
    Create a new matrix with a unit.
    protected
    SquareDenseMatrix(double[] dataSi, Unit<?,Q> displayUnit, int order)
    Create a new SquareDenseMatrix with a unit.
     
    SquareMatrix(Unit<?,Q> displayUnit)
    Create a new square matrix with a unit.
     
    Table(Unit<?,Q> displayUnit)
    Create a new Table with a unit.
     
    Vector(Unit<?,Q> displayUnit)
    Create a new Vector with a unit, as an extension of Matrix.
     
    VectorMatrix(Unit<?,Q> displayUnit)
    Create a new vector or matrix with a unit.
  • Uses of Unit in org.djunits.vecmat.dn

    Methods in org.djunits.vecmat.dn with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    MatrixNxN<TQ>
    MatrixNxN.as(Unit<?,TQ> targetUnit)
    Return the matrix "as" a matrix with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    VectorN.Col<TQ>
    VectorN.Col.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    <TQ extends Quantity<TQ>>
    VectorN.Row<TQ>
    VectorN.Row.as(Unit<?,TQ> targetUnit)
    Return the vector 'as' a vector with a known quantity, using a unit to express the result in.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxN<A,Q>
    AbsMatrixNxN.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrixNxN with a unit, based on a 2-dimensional grid.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxN<A,Q>
    AbsMatrixNxN.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create an AbsMatrixNxN without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVectorN.Col<A,Q>
    AbsVectorN.Col.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVectorN.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVectorN.Row<A,Q>
    AbsVectorN.Row.of(double[] dataInUnit, Unit<?,Q> unit, R reference)
    Create a AbsVectorN.Row without needing generics.
    static <Q extends Quantity<Q>>
    MatrixNxN<Q>
    MatrixNxN.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new MatrixNxN with a unit, based on a 2-dimensional grid with values in the given unit.
    static <Q extends Quantity<Q>>
    MatrixNxN<Q>
    MatrixNxN.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a new MatrixNxN with a unit, based on a row-major array with values in the given unit.
    static <Q extends Quantity<Q>>
    VectorN.Col<Q>
    VectorN.Col.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a new column VectorN with a unit, based on a double[] array that contains data in the given unit.
    static <Q extends Quantity<Q>>
    VectorN.Row<Q>
    VectorN.Row.of(double[] dataInUnit, Unit<?,Q> unit)
    Create a new row VectorN with a unit, based on a double[] array that contains data in the given unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxN<A,Q>
    AbsMatrixNxN.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrixNxN with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxN<A,Q>
    AbsMatrixNxN.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create an AbsMatrixNxN without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVectorN.Col<A,Q>
    AbsVectorN.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVectorN.Col without needing generics.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsVectorN.Row<A,Q>
    AbsVectorN.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
    Create a AbsVectorN.Row without needing generics.
    static <Q extends Quantity<Q>>
    MatrixNxN<Q>
    MatrixNxN.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new MatrixNxN with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    MatrixNxN<Q>
    MatrixNxN.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a MatrixNxN without needing generics, based on a row-major array with SI-values.
    static <Q extends Quantity<Q>>
    VectorN.Col<Q>
    VectorN.Col.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a new column VectorN with a unit, based on a double[] array that contains SI data.
    static <Q extends Quantity<Q>>
    VectorN.Col<Q>
    VectorN.Col.ofSi(DataGridSi<?> dataSi, Unit<?,Q> displayUnit)
    Create a new column VectorN with a unit, based on a DataGridSi storage object that contains SI data.
    static <Q extends Quantity<Q>>
    VectorN.Row<Q>
    VectorN.Row.ofSi(double[] dataSi, Unit<?,Q> displayUnit)
    Create a new row VectorN with a unit, based on a double[] array that contains SI data.
    static <Q extends Quantity<Q>>
    VectorN.Row<Q>
    VectorN.Row.ofSi(DataGridSi<?> dataSi, Unit<?,Q> displayUnit)
    Create a new row VectorN with a unit, based on a DataGridSi storage object that contains SI data.
    Constructors in org.djunits.vecmat.dn with parameters of type Unit
    Modifier
    Constructor
    Description
     
    Col(DataGridSi<?> dataSi, Unit<?,Q> displayUnit)
    Create a new column VectorN with a unit, based on a DataGridSi storage object that contains SI data.
     
    MatrixNxN(DataGridSi<?> dataGridSi, Unit<?,Q> displayUnit)
    Create a new NxN Matrix with a unit, based on a DataGrid storage object that contains SI data.
     
    Row(DataGridSi<?> dataSi, Unit<?,Q> displayUnit)
    Create a new row VectorN with a unit, based on a DataGridSi storage object that contains SI data.
    protected
    VectorN(DataGridSi<?> dataSi, Unit<?,Q> displayUnit)
    Create a new VectorN with a unit, based on a DataGridSi storage object that contains SI data.
  • Uses of Unit in org.djunits.vecmat.dnxm

    Methods in org.djunits.vecmat.dnxm with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    MatrixNxM<TQ>
    MatrixNxM.as(Unit<?,TQ> targetUnit)
    Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxM<A,Q>
    AbsMatrixNxM.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create a new AbsMatrixNxM with a unit, based on a 2-dimensional grid with values in the given unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxM<A,Q>
    AbsMatrixNxM.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit, R reference)
    Create a new AbsMatrixNxM with a unit, based on a row-major array with values in the given unit.
    static <Q extends Quantity<Q>>
    MatrixNxM<Q>
    MatrixNxM.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new MatrixNxM with a unit, based on a 2-dimensional grid with values in the given unit.
    static <Q extends Quantity<Q>>
    MatrixNxM<Q>
    MatrixNxM.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit)
    Create a new MatrixNxM with a unit, based on a row-major array with values in the given unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxM<A,Q>
    AbsMatrixNxM.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create a new AbsMatrixNxM with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsMatrixNxM<A,Q>
    AbsMatrixNxM.ofSi(double[] dataSi, int rows, int cols, Unit<?,Q> displayUnit, R reference)
    Create a AbsMatrixNxM without needing generics, based on a row-major array with SI-values.
    static <Q extends Quantity<Q>>
    MatrixNxM<Q>
    MatrixNxM.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new MatrixNxM with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    MatrixNxM<Q>
    MatrixNxM.ofSi(double[] dataSi, int rows, int cols, Unit<?,Q> displayUnit)
    Create a MatrixNxM without needing generics, based on a row-major array with SI-values.
    Constructors in org.djunits.vecmat.dnxm with parameters of type Unit
    Modifier
    Constructor
    Description
     
    MatrixNxM(DataGridSi<?> dataGridSi, Unit<?,Q> displayUnit)
    Create a new NxM Matrix with a unit, based on a DataGrid storage object that contains SI data.
  • Uses of Unit in org.djunits.vecmat.storage

    Methods in org.djunits.vecmat.storage with parameters of type Unit
    Modifier and Type
    Method
    Description
    static <Q extends Quantity<Q>>
    DenseDoubleDataSi
    DenseDoubleDataSi.of(double[][] gridInUnit, Unit<?,Q> unit)
    Instantiate a data object based on a row x column double[][] array in a given unit.
    static <Q extends Quantity<Q>>
    DenseDoubleDataSi
    DenseDoubleDataSi.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit)
    Instantiate a data object based on a row-major double[] array in a given unit.
    static <Q extends Quantity<Q>>
    DenseFloatDataSi
    DenseFloatDataSi.of(double[][] gridInUnit, Unit<?,Q> unit)
    Instantiate a data object with a double[rows][cols].
    static <Q extends Quantity<Q>>
    DenseFloatDataSi
    DenseFloatDataSi.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit)
    Instantiate a data object with one array in row-major format.
    static <Q extends Quantity<Q>>
    DenseFloatDataSi
    DenseFloatDataSi.of(float[][] gridInUnit, Unit<?,Q> unit)
    Instantiate a data object with a float[rows][cols].
    static <Q extends Quantity<Q>>
    DenseFloatDataSi
    DenseFloatDataSi.of(float[] dataInUnit, int rows, int cols, Unit<?,Q> unit)
    Instantiate a data object with one array in row-major format.
    Constructors in org.djunits.vecmat.storage with parameters of type Unit
    Modifier
    Constructor
    Description
     
    DoubleSparseValue(int row, int column, double valueInUnit, Unit<?,Q> unit)
    Create a data point for a sparse matrix.
     
    FloatSparseValue(int row, int column, float valueInUnit, Unit<?,Q> unit)
    Create a data point for a sparse matrix.
  • Uses of Unit in org.djunits.vecmat.table

    Methods in org.djunits.vecmat.table with parameters of type Unit
    Modifier and Type
    Method
    Description
    <TQ extends Quantity<TQ>>
    QuantityTable<TQ>
    QuantityTable.as(Unit<?,TQ> targetUnit)
    Return the QuantityTable 'as' a QuantityTable with a known quantity, using a unit to express the result in.
    AbsQuantityTable.format(Unit<?,Q> targetUnit)
    String representation of this quantity table, expressed in the specified unit.
    QuantityTable.format(Unit<?,Q> targetUnit)
    String representation of this quantity table, expressed in the specified unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsQuantityTable<A,Q>
    AbsQuantityTable.of(double[][] gridInUnit, Unit<?,Q> unit, R reference)
    Create a new AbsQuantityTable with a unit, based on a 2-dimensional grid with values in the given unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsQuantityTable<A,Q>
    AbsQuantityTable.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit, R reference)
    Create a new AbsQuantityTable with a unit, based on a row-major array with values in the given unit.
    static <Q extends Quantity<Q>>
    QuantityTable<Q>
    QuantityTable.of(double[][] gridInUnit, Unit<?,Q> unit)
    Create a new QuantityTable with a unit, based on a 2-dimensional grid with values in the given unit.
    static <Q extends Quantity<Q>>
    QuantityTable<Q>
    QuantityTable.of(double[] dataInUnit, int rows, int cols, Unit<?,Q> unit)
    Create a new QuantityTable with a unit, based on a row-major array with values in the given unit.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsQuantityTable<A,Q>
    AbsQuantityTable.ofSi(double[][] gridSi, Unit<?,Q> displayUnit, R reference)
    Create a new AbsQuantityTable with a unit, based on a 2-dimensional grid with SI-values.
    static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
    AbsQuantityTable<A,Q>
    AbsQuantityTable.ofSi(double[] dataSi, int rows, int cols, Unit<?,Q> displayUnit, R reference)
    Create a AbsQuantityTable without needing generics, based on a row-major array with SI-values.
    static <Q extends Quantity<Q>>
    QuantityTable<Q>
    QuantityTable.ofSi(double[][] gridSi, Unit<?,Q> displayUnit)
    Create a new QuantityTable with a unit, based on a 2-dimensional grid with SI-values.
    static <Q extends Quantity<Q>>
    QuantityTable<Q>
    QuantityTable.ofSi(double[] dataSi, int rows, int cols, Unit<?,Q> displayUnit)
    Create a QuantityTable without needing generics, based on a row-major array with SI-values.
    Constructors in org.djunits.vecmat.table with parameters of type Unit
    Modifier
    Constructor
    Description
     
    QuantityTable(DataGridSi<?> dataGridSi, Unit<?,Q> displayUnit)
    Create a new NxM QuantityTable with a unit, based on a DataGrid storage object.