Class AbsVector2.Row<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>>

Type Parameters:
A - the absolute quantity type
Q - the corresponding relative quantity type
All Implemented Interfaces:
Serializable, Iterable<A>, Value<AbsVector2.Row<A,Q>,Q>, AbsVector.Row<AbsVector2.Row<A,Q>,Q>
Enclosing class:
AbsVector2<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>,VA extends AbsVector2<A,Q,VA,VQ,VAT>,VQ extends Vector2<Q,VQ,?,?,?>,VAT extends AbsVector2<A,Q,VAT,?,VA>>

public static class AbsVector2.Row<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>> extends AbsVector2<A,Q,AbsVector2.Row<A,Q>,Vector2.Row<Q>,AbsVector2.Col<A,Q>> implements AbsVector.Row<AbsVector2.Row<A,Q>,Q>
Row vector for AbsVector2 with absolute quantities.

Copyright (c) 2026-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.

Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • Row

      public Row(Vector2.Row<Q> relativeVector, Reference<?,A,Q> reference)
      Create a new AbsVector2 with absolute quantities, with a display unit and a reference point.
      Parameters:
      relativeVector - the vector with values relative to the reference point
      reference - the reference point for the absolute values
  • Method Details

    • instantiate

      public AbsVector2.Row<A,Q> instantiate(Vector2.Row<Q> relativeVector, Reference<?,A,Q> reference)
      Description copied from class: AbsVectorMatrix
      Return a new vector or matrix with the given SI or BASE values for the relative vector or matrix.
      Specified by:
      instantiate in class AbsVectorMatrix<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>,AbsVector2.Row<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>>,Vector2.Row<Q extends Quantity<Q>>,AbsVector2.Col<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>>>
      Parameters:
      relativeVector - the underlying relative vector or matrix with SI values relative to the reference point
      reference - the reference point for the relative SI values
      Returns:
      a new matrix with the provided SI or BASE values
    • transpose

      public AbsVector2.Col<A,Q> transpose()
      Description copied from class: AbsVectorMatrix
      Return a transposed absolute vector or matrix, where rows and columns have been swapped.
      Specified by:
      transpose in class AbsVectorMatrix<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>,AbsVector2.Row<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>>,Vector2.Row<Q extends Quantity<Q>>,AbsVector2.Col<A extends AbsQuantity<A,Q,?>,Q extends Quantity<Q>>>
      Returns:
      a transposed absolute vector or matrix, where rows and columns have been swapped
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(double xInUnit, double yInUnit, Unit<?,Q> unit, R reference)
      Create a AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      xInUnit - the x-value expressed in the unit
      yInUnit - the y-value expressed in the unit
      unit - the unit of the data, which will also be used as the display unit
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(Q x, Q y, R reference)
      Create a AbsVector2.Row without needing generics. The display unit will be taken from the x-quantity.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      x - the x-value expressed as a quantity
      y - the y-value expressed as a quantity
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(A absX, A absY)
      Create an AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      absX - the v1-value expressed as an absolute quantity
      absY - the v2-value expressed as an absolute quantity
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(double[] dataInUnit, Unit<?,Q> unit, R reference)
      Create a AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      dataInUnit - the vector entries expressed as an array in the unit
      unit - the unit of the data, which will also be used as the display unit
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • ofSi

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> ofSi(double[] dataSi, Unit<?,Q> displayUnit, R reference)
      Create a AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      dataSi - the vector entries expressed as an array in the SI units
      displayUnit - the display unit to use
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • ofSi

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> ofSi(double xSi, double ySi, Unit<?,Q> displayUnit, R reference)
      Create a AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      xSi - the x vector entry expressed in the SI unit
      ySi - the y vector entry expressed in the SI unit
      displayUnit - the display unit to use
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(Q[] data, R reference)
      Create a AbsVector2.Row without needing generics. The display unit will be taken from the first quantity in the array.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      data - the vector entries expressed as an array of quantities
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(A[] absData)
      Create an AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      absData - the {x, y} value expressed as an array of absolute quantities
      Returns:
      a new AbsVector2.Row with a unit
    • of

      public static <A extends AbsQuantity<A, Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>> AbsVector2.Row<A,Q> of(Vector2.Row<Q> relativeVector, R reference)
      Create an AbsVector2.Row without needing generics.
      Type Parameters:
      A - the absolute quantity type
      Q - the quantity type
      R - the reference type
      Parameters:
      relativeVector - the relative vector
      reference - the reference point for the absolute quantities
      Returns:
      a new AbsVector2.Row with a unit