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

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.d3.Vector3<Q,U,V,SI,H>
Type Parameters:
Q - the quantity type
U - the unit type
V - the vector type (Col or Row)
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:
Vector3.Col, Vector3.Row

public abstract class Vector3<Q extends Quantity<Q,U>,U extends UnitInterface<U,Q>,V extends Vector3<Q,U,V,SI,H>,SI extends Vector3<SIQuantity,SIUnit,SI,?,?>,H extends Vector3<?,?,?,?,?>> extends Vector<Q,U,V,SI,H>
Vector3 implements a vector with three 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:
  • Constructor Details

    • Vector3

      protected Vector3(double xInUnit, double yInUnit, double zInUnit, U displayUnit)
      Create a new Vector3 with a unit.
      Parameters:
      xInUnit - the x-value expressed in the display unit
      yInUnit - the y-value expressed in the display unit
      zInUnit - the z-value expressed in the display unit
      displayUnit - the display unit to use
  • Method Details