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) |
isReference
absolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, hashCode, interpolate, interpolate, isFullyMutable, iterator, join, multiply, multiply, negate, normalise, projectToPlane, scale, scaleAdd, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toString
public int length()
public double get(int i)
public void set(int i, double value)
public double magnitudeSquared()
magnitudeSquared
in class AVector
public double magnitude()
AVector
public boolean isZeroVector()
AVector
isZeroVector
in class AVector
public boolean isMutable()
AVector
isMutable
in class APrimitiveVector
public boolean isUnitLengthVector()
AVector
isUnitLengthVector
in class AVector
Copyright © 2012. All Rights Reserved.