public interface Vector2D extends Vector, Pair<java.lang.Double,java.lang.Double>
Vector.IndexValueConsumer, Vector.IndexValueTransformVectorSpace.Entry| Modifier and Type | Method and Description |
|---|---|
double |
getX()
Gets the value of the first dimension (x).
|
double |
getY()
Gets the value of the second dimension (y).
|
void |
setX(double x)
Sets the value of the first dimension (x).
|
void |
setXY(double x,
double y)
Sets the value of both dimensions of the vector.
|
void |
setY(double y)
Sets the value of the second dimension (y).
|
assertDimensionalityEquals, assertSameDimensionality, checkSameDimensionality, clone, countNonZeros, decrement, decrement, dotDivide, dotDivideEquals, forEachElement, forEachEntry, forEachNonZero, get, getDimensionality, getElement, getEntryCount, getVectorFactory, increment, increment, isSparse, outerProduct, set, setElement, stack, subVector, times, toArray, toString, toString, toString, transform, transform, transformEquals, transformEquals, transformNonZeros, transformNonZeros, transformNonZerosEquals, transformNonZerosEquals, valuesAsListangle, cosine, dot, dotProduct, euclideanDistance, euclideanDistanceSquared, getMaxValue, getMinValue, isUnitVector, isUnitVector, norm, norm1, norm2, norm2Squared, normInfinity, sum, unitVector, unitVectorEqualsdotTimes, dotTimesEquals, equals, equals, isZero, isZero, minus, minusEquals, negative, negativeEquals, plus, plusEquals, scale, scaledMinus, scaledMinusEquals, scaledPlus, scaledPlusEquals, scaleEquals, zeroconvertFromVector, convertToVectordouble getX()
void setX(double x)
x - The value for the first dimension (x).double getY()
void setY(double y)
y - The value of the second dimension (y).void setXY(double x,
double y)
x - The value of the first dimension (x).y - The value of the second dimension (y).