public abstract class ArrayVector extends AVector
| Constructor and Description |
|---|
ArrayVector() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ArrayVector v) |
void |
add(ArrayVector src,
int srcOffset) |
void |
addMultiple(ArrayVector v,
double factor) |
void |
copy(int start,
int length,
ArrayVector dest,
int destOffset) |
void |
copy(int start,
int length,
AVector dest,
int destOffset)
Copies a subset of this vector to a vector at the specified offset
|
void |
copyTo(double[] data,
int offset)
Copies a the contents of a vector to a double array at the specified offset
|
void |
divide(AVector v) |
void |
divide(double[] data,
int offset) |
void |
divideTo(double[] data,
int offset) |
void |
fillRange(int offset,
int length,
double value) |
abstract double[] |
getArray() |
abstract int |
getArrayOffset() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
void |
multiply(AVector v) |
void |
multiply(double[] data,
int offset) |
void |
multiplyTo(double[] data,
int offset) |
void |
set(AVector a)
Sets the vector to equal the value of another vector
|
void |
set(AVector a,
int offset)
Set the vector equal to an offset into another vector
|
ArraySubVector |
subVector(int offset,
int length)
Returns a vector referencing a sub-vector of the current vector
|
absolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, clone, compareTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, divide, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, get, hashCode, interpolate, interpolate, isFullyMutable, isMutable, isReference, isUnitLengthVector, isZeroVector, iterator, join, length, maxAbsComponent, multiply, negate, normalise, normaliseMaxAbsComponent, projectToPlane, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, setValues, sub, subMultiple, toArray, toList, toStringpublic abstract double[] getArray()
public abstract int getArrayOffset()
public ArraySubVector subVector(int offset, int length)
public void copyTo(double[] data,
int offset)
AVectorpublic void fillRange(int offset,
int length,
double value)
public void set(AVector a)
AVectorpublic void set(AVector a, int offset)
AVectorpublic void add(ArrayVector v)
public void add(ArrayVector src, int srcOffset)
public void multiplyTo(double[] data,
int offset)
multiplyTo in class AVectorpublic void copy(int start,
int length,
AVector dest,
int destOffset)
AVectorpublic void copy(int start,
int length,
ArrayVector dest,
int destOffset)
public void addMultiple(ArrayVector v, double factor)
public double magnitudeSquared()
magnitudeSquared in class AVectorCopyright © 2012. All Rights Reserved.