Package org.djunits.vecmat.d2
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 typeQ- the corresponding relative quantity typeVA- the absolute vector or matrix typeVQ- the relative vector or matrix typeVAT- 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbsVector2.Col<A extends AbsQuantity<A,Q, ?>, Q extends Quantity<Q>> Column vector for AbsVector2 with absolute quantities.static classAbsVector2.Row<A extends AbsQuantity<A,Q, ?>, Q extends Quantity<Q>> Row vector for AbsVector2 with absolute quantities. -
Constructor Summary
ConstructorsConstructorDescriptionAbsVector2(VQ relativeVector, Reference<?, A, Q> reference) Instantiate an AbsVector2. -
Method Summary
Methods inherited from class org.djunits.vecmat.def.AbsVector
get, getScalarArray, getSiArray, isColumnVector, isRowVector, iterator, mget, msi, si, sizeMethods inherited from class org.djunits.vecmat.def.AbsVectorMatrix
add, add, asAbsMatrix1x1, asAbsMatrix2x2, asAbsMatrix3x3, asAbsMatrixNxM, asAbsMatrixNxN, asAbsQuantityTable, asAbsVector1, asAbsVector2Col, asAbsVector2Row, asAbsVector3Col, asAbsVector3Row, asAbsVectorNCol, asAbsVectorNRow, checkCol, checkRow, cols, equals, getDisplayUnit, getReference, getRelativeVecMat, hashCode, instantiate, instantiateSi, isRelative, max, mcheckCol, mcheckRow, median, min, rows, setDisplayUnit, subtract, subtract, subtract, subtract, toString, transposeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.djunits.value.Value
format, format, isAbsolute, setDisplayUnit
-
Constructor Details
-
AbsVector2
Instantiate an AbsVector2.- Parameters:
relativeVector- the vector with values relative to the reference pointreference- the reference point for the absolute values
-