Class Vector2<Q extends Quantity<Q,U>,U extends UnitInterface<U,Q>,V extends Vector2<Q,U,V,SI,H>,SI extends Vector2<SIQuantity,SIUnit,SI,?,?>,H extends Vector2<?,?,?,?,?>>

java.lang.Object
org.djunits.vecmat.def.VectorMatrix<Q,U,M,SI,H>
org.djunits.vecmat.def.Matrix<Q,U,V,SI,H>
org.djunits.vecmat.def.Vector<Q,U,V,SI,H>
org.djunits.vecmat.d2.Vector2<Q,U,V,SI,H>
Type Parameters:
Q - the quantity type
U - the unit type
V - the vector type (Row or Col)
SI - the vector type with generics <SIQuantity, SIUnit<
H - the generic vector type with generics <?, ?< for Hadamard operations
All Implemented Interfaces:
Serializable, Iterable<Q>, Additive<V>, Scalable<V>, Value<U,V>, Hadamard<H,SI>, Normed<Q,U>
Direct Known Subclasses:
Vector2.Col, Vector2.Row

public abstract class Vector2<Q extends Quantity<Q,U>,U extends UnitInterface<U,Q>,V extends Vector2<Q,U,V,SI,H>,SI extends Vector2<SIQuantity,SIUnit,SI,?,?>,H extends Vector2<?,?,?,?,?>> extends Vector<Q,U,V,SI,H>
Vector2 implements a vector with two real-valued entries. The vector is immutable, except for the display unit, which can be changed. Many of the method that have been defined already for a generic vector have been re-implemented for efficiency.

Copyright (c) 2025-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: