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>>

java.lang.Object
org.djunits.vecmat.def.AbsVectorMatrix<A,Q,VA,VQ,VAT>
org.djunits.vecmat.def.AbsVector<A,Q,VA,VQ,VAT>
org.djunits.vecmat.d2.AbsVector2<A,Q,VA,VQ,VAT>
Type Parameters:
A - the absolute quantity type
Q - the corresponding relative quantity type
VA - the absolute vector or matrix type
VQ - the relative vector or matrix type
VAT - the type of the transposed version of the absolute vector
All Implemented Interfaces:
Serializable, Iterable<A>, Value<VA,Q>
Direct Known Subclasses:
AbsVector2.Col, AbsVector2.Row

public abstract 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>> extends AbsVector<A,Q,VA,VQ,VAT>
AbsVector2 implements a vector with two real-valued entries representing an absolute quantity. The vector is immutable, except for the display unit, which can be changed. Some of the method that have been defined already for a generic vector can be re-implemented for efficiency.

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

    • AbsVector2

      public AbsVector2(VQ relativeVector, Reference<?,A,Q> reference)
      Instantiate an AbsVector2.
      Parameters:
      relativeVector - the vector with values relative to the reference point
      reference - the reference point for the absolute values