public abstract class ArrayVector extends AVector
| Constructor and Description |
|---|
ArrayVector() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ArrayVector v) |
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 suset 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
|
abstract double[] |
getArray() |
abstract int |
getArrayOffset() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
ArraySubVector |
subVector(int offset,
int length)
Returns a vector referencing a sub-vector of the current vector
|
absolute, add, addMultiple, angle, clamp, clampMax, clampMin, clone, compareTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, dotProduct, epsilonEquals, epsilonEquals, equals, fill, get, hashCode, interpolate, interpolate, isMutable, isReference, isUnitLengthVector, isZeroVector, join, length, multiply, negate, normalise, projectToPlane, scale, scaleAdd, 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 add(ArrayVector v)
public 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.