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) |
isReferenceabsolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, compareTo, copy, copyTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, interpolate, interpolate, isFullyMutable, isUnitLengthVector, iterator, join, multiply, multiply, multiply, multiplyTo, negate, normalise, projectToPlane, scale, scaleAdd, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toStringpublic static ZeroLengthVector INSTANCE
public int length()
public double get(int i)
public void set(int i,
double value)
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.