public final class JoinedVector extends AVector
| Constructor and Description |
|---|
JoinedVector(AVector left,
AVector right) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AVector a)
Adds another vector to this one
|
void |
add(AVector a,
int offset)
Adds another vector to this one
|
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(AVector dest,
int offset)
Copies a the contents of a 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 |
fill(double value)
Fills a vector with a given value
|
double |
get(int i) |
boolean |
isReference()
Returns true if this vector is of a type that references other vectors / data.
|
int |
length() |
void |
multiply(double value)
Multiplies the vector by a constant factor
|
void |
set(AVector src)
Sets the vector to equal the value of another vector
|
void |
set(AVector src,
int offset)
Set the vector equal to an offset into another vector
|
void |
set(int i,
double value) |
AVector |
subVector(int start,
int length)
Obtains a sub-vector that refers to this vector.
|
absolute, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, clone, compareTo, distance, distanceL1, distanceLinf, distanceSquared, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fillRange, hashCode, interpolate, interpolate, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, multiply, negate, normalise, projectToPlane, scale, scaleAdd, set, setValues, sub, subMultiple, toArray, toList, toStringpublic int length()
public boolean isReference()
AVectorisReference in class AVectorpublic void copyTo(AVector dest, int offset)
AVectorpublic void copyTo(double[] data,
int offset)
AVectorpublic void copy(int start,
int length,
AVector dest,
int destOffset)
AVectorpublic AVector subVector(int start, int length)
AVectorpublic void add(AVector a)
AVectorpublic void add(AVector a, int offset)
AVectorpublic double get(int i)
public void set(AVector src)
AVectorpublic void set(AVector src, int offset)
AVectorpublic void set(int i,
double value)
public void fill(double value)
AVectorCopyright © 2012. All Rights Reserved.