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, toString
public int length()
public boolean isReference()
AVector
isReference
in class AVector
public void copyTo(AVector dest, int offset)
AVector
public void copyTo(double[] data, int offset)
AVector
public void copy(int start, int length, AVector dest, int destOffset)
AVector
public AVector subVector(int start, int length)
AVector
public void add(AVector a)
AVector
public void add(AVector a, int offset)
AVector
public double get(int i)
public void set(AVector src)
AVector
public void set(AVector src, int offset)
AVector
public void set(int i, double value)
public void fill(double value)
AVector
Copyright © 2012. All Rights Reserved.