public abstract class Vector<M extends AbstractMeasure<U,M>,U extends Unit<M,U>,V extends Vector<M,U,V>> extends java.lang.Object implements Dimension<V>
ComparableUsing.EqualityMode, ComparableUsing.Operator
Modifier | Constructor and Description |
---|---|
protected |
Vector(M magnitude,
Angle angle) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(V o) |
V |
copy(U lu,
AngleUnit au) |
Rational |
div(V v) |
ComparableUsing.EqualityMode |
equalityMode() |
boolean |
equals(java.lang.Object o) |
V |
fromBaseNumber(Rational p0) |
V |
fromNumber(Rational p0) |
Angle |
getAngle() |
M |
getMagnitude() |
M |
getX() |
M |
getY() |
int |
hashCode() |
abstract V |
make(M magnitude,
Angle angle) |
V |
minus(V v) |
V |
plus(V v) |
Rational |
times(V v) |
V |
to(U lu,
AngleUnit au) |
Rational |
toBaseNumber() |
Rational |
toNumber() |
java.lang.String |
toString() |
V |
unaryMinus() |
clone, emptyArray, finalize, getClass, jailbreak, notify, notifyAll, wait, wait, wait
compareToUsing
public M getMagnitude()
public Angle getAngle()
public M getX()
public M getY()
public V unaryMinus()
public Rational toNumber()
public Rational toBaseNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(V o)
public ComparableUsing.EqualityMode equalityMode()
equalityMode
in interface ComparableUsing<V extends Vector<M,U,V>>
Copyright © 2024. All rights reserved.