public final class JoinedVector extends AVector
| 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
|
int |
depth() |
static int |
depthCalc(AVector v) |
void |
divideTo(double[] data,
int 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.
|
static AVector |
join(AVector left,
AVector right)
returns a JoinedVector connecting the two vectors
|
int |
length() |
void |
multiply(double value)
Multiplies the vector by a constant factor
|
void |
multiplyTo(double[] data,
int offset) |
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, divide, divide, divide, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fillRange, hashCode, interpolate, interpolate, isFullyMutable, isMutable, isUnitLengthVector, isZeroVector, iterator, join, magnitude, magnitudeSquared, maxAbsComponent, multiply, multiply, negate, normalise, normaliseMaxAbsComponent, projectToPlane, scale, scale, scaleAdd, scaleToMagnitude, set, set, setValues, sub, subMultiple, toArray, toList, toStringpublic static AVector join(AVector left, AVector right)
left - right - public int length()
public boolean isReference()
AVectorisReference in class AVectorpublic void copyTo(AVector dest, int offset)
AVectorpublic void copyTo(double[] data,
int offset)
AVectorpublic void multiplyTo(double[] data,
int offset)
multiplyTo in class 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)
AVectorpublic void multiply(double value)
AVectorpublic static int depthCalc(AVector v)
public int depth()
Copyright © 2012. All Rights Reserved.