Class VectorND
java.lang.Object
org.episteme.core.mathematics.linearalgebra.vectors.GenericVector<Real>
org.episteme.core.mathematics.linearalgebra.vectors.DenseVector<Real>
org.episteme.core.mathematics.geometry.VectorND
- All Implemented Interfaces:
Vector<Real>, AbelianGroup<Vector<Real>>, AbelianMonoid<Vector<Real>>, Group<Vector<Real>>, Magma<Vector<Real>>, Monoid<Vector<Real>>, Set<Vector<Real>>, Module<Vector<Real>, Real>, MetricSpace<Vector<Real>>, TopologicalSpace<Vector<Real>>
Represents an N-dimensional geometric vector.
A geometric vector represents a direction and magnitude in N-dimensional space. Unlike points (which represent positions), vectors represent displacements, velocities, forces, etc.
Key distinction from algebraic vectors:
- VectorND is specifically for geometric operations (cross product, angles,
etc.)
- Vector
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from class GenericVector
provider, ring, storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether this set contains the specified element.booleancontainsPoint(Vector<Real> p) Checks if this space contains the given point.Computes the distance between two points.booleanisClosed()Checks if this set is closed in the topology.booleanisEmpty()Returnstrueif this set contains no elements.booleanisOpen()Checks if this set is open in the topology.booleanisUnit()booleanisZero()Returns the scalar product of this vector.negate()Returns the negation of this vector (-this).Returns the normalized vector (unit vector).static VectorNDof(double... components) static VectorNDtoString()toVector()static VectorNDunitVector(int dimension, int direction) static VectorNDzero(int dimension) Methods inherited from class DenseVector
getDenseStorage, of, valueOf, zerosMethods inherited from class GenericVector
add, angle, cross, description, dimension, dot, get, getField, getProvider, getScalarRing, getStorage, inverse, norm, operate, projection, scale, scale, set, subtract, toMatrix, toTensor, withProviderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AbelianGroup
isCommutative, negate, subtractMethods inherited from interface AbelianMonoid
add, identity, zeroMethods inherited from interface Monoid
isAssociativeMethods inherited from interface Set
description
-
Constructor Details
-
VectorND
-
VectorND
-
-
Method Details
-
of
-
of
-
zero
-
unitVector
-
toVector
-
add
-
subtract
-
multiply
-
divide
-
negate
-
dot
-
distance
Description copied from interface:MetricSpaceComputes the distance between two points.- Specified by:
distancein interfaceMetricSpace<Vector<Real>>- Parameters:
a- the first pointb- the second point- Returns:
- the distance between a and b
-
contains
Description copied from interface:SetTests whether this set contains the specified element.This is the fundamental operation of a set - membership testing.
-
containsPoint
Description copied from interface:TopologicalSpaceChecks if this space contains the given point.Named containsPoint to avoid erasure conflict with Set.contains.
- Specified by:
containsPointin interfaceTopologicalSpace<Vector<Real>>- Parameters:
p- the point to check- Returns:
- true if the point is in this space
-
isEmpty
public boolean isEmpty()Description copied from interface:SetReturnstrueif this set contains no elements.The empty set (∅) is a fundamental concept in set theory. It is the unique set containing no elements.
-
isOpen
public boolean isOpen()Description copied from interface:TopologicalSpaceChecks if this set is open in the topology.- Specified by:
isOpenin interfaceTopologicalSpace<Vector<Real>>- Returns:
- true if this is an open set
-
isClosed
public boolean isClosed()Description copied from interface:TopologicalSpaceChecks if this set is closed in the topology.- Specified by:
isClosedin interfaceTopologicalSpace<Vector<Real>>- Returns:
- true if this is a closed set
-
cross
-
normSquared
-
normalize
-
isUnit
public boolean isUnit() -
isZero
public boolean isZero() -
angleTo
-
toString
- Overrides:
toStringin classDenseVector<Real>
-