Class VectorSpace2D
java.lang.Object
org.episteme.core.mathematics.linearalgebra.spaces.VectorSpace2D
- All Implemented Interfaces:
AbelianGroup<Vector<Real>>, AbelianMonoid<Vector<Real>>, Group<Vector<Real>>, Magma<Vector<Real>>, Monoid<Vector<Real>>, Set<Vector<Real>>, Module<Vector<Real>, Real>, VectorSpace<Vector<Real>, Real>
2D Vector Space.
Optimized for 2D geometry and physics.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the sum of two elements (additive notation).booleanTests whether this set contains the specified element.Returns a human-readable description of this set.intReturns the dimension of the vector space (if finite).static VectorSpace2DReturns the field of scalars.Returns the ring of scalars for this module.Returns the inverse of the given element.booleanAbelian groups are always commutative by definition.booleanisEmpty()Returnstrueif this set contains no elements.Returns the additive inverse (negation) of an element.Performs the binary operation on two elements.Scalar multiplication (r × m).zero()Returns the additive identity (zero element).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AbelianGroup
subtractMethods inherited from interface AbelianMonoid
identityMethods inherited from interface Monoid
isAssociative
-
Method Details
-
getInstance
-
operate
Description copied from interface:MagmaPerforms the binary operation on two elements.This is the fundamental operation of a magma. The result must be an element of this magma (closure property).
Properties: None required (not necessarily associative or commutative)
-
add
Description copied from interface:AbelianMonoidReturns the sum of two elements (additive notation).Delegates to
Magma.operate(Object, Object).- Specified by:
addin interfaceAbelianMonoid<Vector<Real>>- Parameters:
a- the first addendb- the second addend- Returns:
- a + b
-
zero
Description copied from interface:AbelianMonoidReturns the additive identity (zero element).Delegates to
AbelianMonoid.identity().- Specified by:
zeroin interfaceAbelianMonoid<Vector<Real>>- Returns:
- the zero element
-
negate
Description copied from interface:AbelianGroupReturns the additive inverse (negation) of an element.Satisfies: a + (-a) = (-a) + a = 0
- Specified by:
negatein interfaceAbelianGroup<Vector<Real>>- Parameters:
element- the element to negate- Returns:
- -element
- See Also:
-
inverse
Description copied from interface:GroupReturns the inverse of the given element.For element a, returns a⻹ such that: a ∗ a⻹ = a⻹ ∗ a = e (identity).
-
scale
-
isCommutative
public boolean isCommutative()Description copied from interface:AbelianGroupAbelian groups are always commutative by definition.- Specified by:
isCommutativein interfaceAbelianGroup<Vector<Real>>- Specified by:
isCommutativein interfaceAbelianMonoid<Vector<Real>>- Specified by:
isCommutativein interfaceGroup<Vector<Real>>- Specified by:
isCommutativein interfaceMagma<Vector<Real>>- Returns:
- always
true
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<Vector<Real>>- Returns:
- a description of this set
-
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.
-
contains
Description copied from interface:SetTests whether this set contains the specified element.This is the fundamental operation of a set - membership testing.
-
getScalarField
Description copied from interface:VectorSpaceReturns the field of scalars.- Specified by:
getScalarFieldin interfaceVectorSpace<Vector<Real>, Real>- Returns:
- the scalar field
-
getScalarRing
-
dimension
public int dimension()Description copied from interface:VectorSpaceReturns the dimension of the vector space (if finite).- Specified by:
dimensionin interfaceVectorSpace<Vector<Real>, Real>- Returns:
- the dimension, or -1 if infinite/unknown
-