public final class ZeroLengthVector extends APrimitiveVector
| Modifier and Type | Field and Description |
|---|---|
static ZeroLengthVector |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ZeroLengthVector |
clone()
Clones the vector, creating a new copy of all data
|
double |
get(int i) |
int |
hashCode() |
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isZeroVector()
Returns true if this vector is a zero vector (all components zero)
|
int |
length() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
void |
set(int i,
double value) |
isReferenceadd, addMultiple, angle, approxEquals, approxEquals, compareTo, copy, copyTo, copyTo, distance, distanceSquared, dotProduct, equals, fill, isUnitLengthVector, join, manhattanDistance, multiply, negate, normalise, set, setValues, subtract, subtractMultiple, subVector, toList, toStringpublic static ZeroLengthVector INSTANCE
public ZeroLengthVector clone()
AVectorpublic boolean isMutable()
AVectorisMutable in class APrimitiveVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorCopyright © 2012. All Rights Reserved.