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