public final class Vector0 extends APrimitiveVector
| Modifier and Type | Method and Description |
|---|---|
Vector0 |
clone()
Clones the vector, creating a new copy of all data.
|
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 |
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() |
static Vector0 |
of() |
static Vector0 |
of(double... values) |
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, compareTo, copy, copyTo, copyTo, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, get, interpolate, interpolate, isFullyMutable, isUnitLengthVector, 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 static Vector0 INSTANCE
public static Vector0 of()
public static Vector0 of(double... values)
public int length()
public double elementSum()
AVectorelementSum in class AVectorpublic double get(int i)
public void set(int i,
double value)
public Vector0 clone()
AVectorpublic boolean isMutable()
AVectorisMutable in class APrimitiveVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorCopyright © 2013. All Rights Reserved.