public final class ZeroVector extends APrimitiveVector
| Constructor and Description |
|---|
ZeroVector(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
get(int i) |
boolean |
isMutable()
Returns true if this vector is mutable.
|
boolean |
isUnitLengthVector()
Returns true if the vector has unit length
|
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, clone, compareTo, copy, copyTo, copyTo, distance, distanceSquared, dotProduct, equals, fill, hashCode, join, manhattanDistance, multiply, negate, normalise, set, setValues, subtract, subtractMultiple, subVector, toList, toStringpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic double magnitude()
AVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isMutable()
AVectorisMutable in class APrimitiveVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorCopyright © 2012. All Rights Reserved.