public final class GrowableVector extends ArrayVector
| Constructor and Description |
|---|
GrowableVector() |
GrowableVector(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(AVector v) |
void |
append(double v) |
AVector |
build()
Function to build a fixed-size vector containing a copy of data
once the GrowableVector is constructed
|
void |
clear() |
GrowableVector |
clone()
Clones the vector, creating a new copy of all data.
|
int |
currentCapacity() |
void |
ensureCapacity(int capacity) |
double |
get(int i) |
double[] |
getArray()
Gets the current underlying array of the GrowableVector.
|
int |
getArrayOffset() |
boolean |
isReference()
Returns true if this vector is of a type that references other vectors / data.
|
int |
length() |
static GrowableVector |
ofInitialCapacity(int capacity)
Returns a new, empty GrowableVector with the specified initial capacity
|
void |
set(int i,
double value) |
add, add, addMultiple, copy, copy, copyTo, divide, divide, divideTo, fillRange, magnitude, magnitudeSquared, multiply, multiply, multiplyTo, set, set, subVectorabsolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, compareTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, divide, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, hashCode, interpolate, interpolate, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, join, maxAbsComponent, multiply, negate, normalise, normaliseMaxAbsComponent, projectToPlane, scale, scale, scaleAdd, scaleToMagnitude, set, set, setValues, sub, subMultiple, toArray, toList, toStringpublic GrowableVector(AVector v)
public GrowableVector()
public static GrowableVector ofInitialCapacity(int capacity)
public double[] getArray()
getArray in class ArrayVectorpublic int getArrayOffset()
getArrayOffset in class ArrayVectorpublic int length()
public int currentCapacity()
public void ensureCapacity(int capacity)
public double get(int i)
public void set(int i,
double value)
public boolean isReference()
AVectorisReference in class AVectorpublic void append(double v)
public void append(AVector v)
public AVector build()
public GrowableVector clone()
AVectorpublic void clear()
Copyright © 2012. All Rights Reserved.