public final class ZeroVector extends APrimitiveVector
| Constructor and Description |
|---|
ZeroVector(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
elementSum()
Returns the sum of all elements in a vector
|
double |
get(int i) |
int |
hashCode() |
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) |
getT, getX, getY, getZ, isReferenceabsolute, add, add, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addToArray, addWeighted, angle, asList, asVector, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, get, interpolate, interpolate, isFullyMutable, iterator, join, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normalise, normaliseMaxAbsElement, projectToPlane, reshape, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toStringpublic int length()
public double get(int i)
public void set(int i,
double value)
public double magnitudeSquared()
magnitudeSquared in class AVectorpublic double magnitude()
AVectorpublic double elementSum()
AVectorelementSum in class AVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isMutable()
AVectorisMutable in class APrimitiveVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorCopyright © 2013. All Rights Reserved.