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, addMultiple, angle, clamp, clampMax, clampMin, compareTo, copy, copyTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, dotProduct, epsilonEquals, epsilonEquals, equals, fill, interpolate, interpolate, isUnitLengthVector, join, multiply, negate, normalise, projectToPlane, scale, scaleAdd, set, setValues, sub, subMultiple, subVector, toArray, 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.