| Package | Description |
|---|---|
| mikera.matrixx | |
| mikera.matrixx.impl | |
| mikera.transformz | |
| mikera.transformz.impl | |
| mikera.vectorz | |
| mikera.vectorz.impl | |
| mikera.vectorz.util |
| Modifier and Type | Method and Description |
|---|---|
AVector |
AMatrix.asVector()
Returns the matrix values as a single reference Vector in the form [row0
row1 row2....]
|
AVector |
AMatrix.cloneRow(int row) |
AVector |
AMatrix.getColumn(int column)
Returns a column of the matrix as a vector reference
|
AVector |
AMatrix.getRow(int row)
Returns a row of the matrix as a vector reference
|
AVector |
AMatrix.toVector() |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
Matrixx.createFromVector(AVector data,
int rows,
int columns) |
static AMatrix |
Matrixx.createFromVectors(AVector... data) |
static Matrix33 |
Matrixx.createRotationMatrix(AVector v,
double angle) |
void |
MatrixMN.transform(AVector source,
AVector dest) |
void |
Matrix33.transform(AVector source,
AVector dest) |
void |
Matrix22.transform(AVector source,
AVector dest) |
void |
AMatrix.transform(AVector source,
AVector dest) |
void |
Matrix22.transform(Vector2 source,
AVector dest) |
void |
Matrix33.transform(Vector3 source,
AVector dest) |
void |
Matrix33.transformInPlace(AVector dest) |
void |
AMatrix.transformInPlace(AVector v) |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixSubVector
Abstract class for matrix sub vectors (rows nd columns)
|
| Modifier and Type | Method and Description |
|---|---|
AVector |
TransposedMatrix.getColumn(int column) |
AVector |
VectorMatrixMN.getRow(int row) |
AVector |
TransposedMatrix.getRow(int row) |
abstract AVector |
AVectorMatrix.getRow(int row)
Gets a row of the matrix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VectorMatrixMN.transform(AVector source,
AVector dest) |
void |
VectorMatrixM3.transform(AVector source,
AVector dest) |
void |
IdentityMatrix.transform(AVector source,
AVector dest) |
void |
AVectorMatrix.transform(AVector source,
AVector dest) |
void |
VectorMatrixM3.transform(Vector3 source,
AVector dest) |
void |
DiagonalMatrix.transformInPlace(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
Translation.getTranslationVector() |
abstract AVector |
ATranslation.getTranslationVector()
Gets the vector offset that this translation represents.
|
AVector |
ATransform.transform(AVector v)
Transforms a vector, returning a new transformed vector
|
| Modifier and Type | Method and Description |
|---|---|
static AAffineTransform |
Transformz.createAffineTransform(AMatrix m,
AVector v) |
static Affine34 |
Transformz.createAffineTransform(Matrix33 m,
AVector v) |
static ATranslation |
Transformz.createTranslation(AVector v) |
AVector |
ATransform.transform(AVector v)
Transforms a vector, returning a new transformed vector
|
void |
Translation3.transform(AVector source,
AVector dest) |
void |
Translation.transform(AVector source,
AVector dest) |
void |
ATranslation.transform(AVector source,
AVector dest) |
abstract void |
ATransform.transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
AffineMN.transform(AVector source,
AVector dest) |
void |
Affine34.transform(AVector source,
AVector dest) |
void |
AAffineTransform.transform(AVector source,
AVector dest) |
void |
Translation3.transformInPlace(AVector v) |
void |
Translation.transformInPlace(AVector v) |
void |
ATranslation.transformInPlace(AVector v) |
void |
ATransform.transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
Affine34.transformInPlace(AVector dest) |
void |
AAffineTransform.transformInPlace(AVector v) |
| Constructor and Description |
|---|
Affine34(AMatrix m,
AVector v) |
Affine34(Matrix33 m,
AVector v) |
AffineMN(AMatrix m,
AVector v) |
Translation(AVector source) |
Translation3(AVector v) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
IdentityTranslation.getTranslationVector() |
| Modifier and Type | Method and Description |
|---|---|
void |
IdentityTranslation.transform(AVector source,
AVector dest) |
void |
CompoundTransform.transform(AVector source,
AVector dest) |
void |
IdentityTranslation.transformInPlace(AVector v) |
| Modifier and Type | Class and Description |
|---|---|
class |
APrimitiveVector
Abstract base class for specialised primitive vectors
|
class |
ArrayVector
Base class for vectors backed by a double[] array.
|
class |
Vector
General purpose vector or arbitrary length, backed by an internal double[] array
|
class |
Vector1
Specialised 1D vector
|
class |
Vector2
Specialised 2D vector
|
class |
Vector3
Specialised 3D vector
|
class |
Vector4
Specialised 4D vector
|
| Modifier and Type | Method and Description |
|---|---|
AVector |
Vector.clone() |
AVector |
AVector.clone()
Clones the vector, creating a new copy of all data.
|
static AVector |
Vectorz.create(double... data) |
static AVector |
Vectorz.create(List<Object> d) |
static AVector |
Vectorz.createLength(int length)
Returns a vector filled with zeros of the specified length.
|
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createSameSize(AVector v) |
static AVector |
Vectorz.createUniformRandomVector(int dimensions) |
static AVector |
Vectorz.createZeroVector(int length) |
static AVector |
Vectorz.deepCopy(AVector vector) |
static AVector |
Vectorz.immutableZeroVector(int dimensions)
Returns an immutable vector of zeros
|
AVector |
AVector.join(AVector second)
Returns a new vector that refers to this vector joined to a second vector
|
static AVector |
Vectorz.join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
static AVector |
Vectorz.join(List<AVector> vectors) |
static AVector |
Vectorz.parse(String ednString)
Parse a vector in edn format
|
AVector |
AVector.subVector(int offset,
int length)
Obtains a sub-vector that refers to this vector.
|
static AVector |
Vectorz.wrap(double[] data) |
static AVector |
Vectorz.wrap(double[][] data) |
| Modifier and Type | Method and Description |
|---|---|
void |
Vector.add(AVector v) |
void |
AVector.add(AVector v)
Adds another vector to this one
|
void |
Vector.addMultiple(AVector v,
double factor) |
void |
AVector.addMultiple(AVector v,
double factor)
Adds a scaled multiple of another vector to this one
|
double |
Vector3.angle(AVector v) |
double |
AVector.angle(AVector v)
Returns the euclidean angle between this vector and another vector
|
int |
AVector.compareTo(AVector a) |
static void |
Vectorz.copy(AVector source,
int srcOffset,
AVector dest,
int destOffset,
int length) |
void |
AVector.copy(int start,
int length,
AVector dest,
int destOffset)
Copies a suset of this vector to a vector at the specified offset
|
void |
ArrayVector.copy(int start,
int length,
AVector dest,
int destOffset) |
void |
AVector.copyTo(AVector dest,
int offset)
Copies a the contents of a vector to a vector at the specified offset
|
static AVector |
Vectorz.createMutableVector(AVector t) |
static AVector |
Vectorz.createSameSize(AVector v) |
static AVector |
Vectorz.deepCopy(AVector vector) |
double |
AVector.distance(AVector v) |
double |
AVector.distanceL1(AVector v) |
double |
AVector.distanceLinf(AVector v) |
double |
AVector.distanceSquared(AVector v) |
double |
AVector.dotProduct(AVector v) |
boolean |
AVector.epsilonEquals(AVector v) |
boolean |
AVector.epsilonEquals(AVector v,
double tolerance) |
void |
AVector.interpolate(AVector a,
AVector b,
double alpha) |
void |
AVector.interpolate(AVector v,
double alpha) |
AVector |
AVector.join(AVector second)
Returns a new vector that refers to this vector joined to a second vector
|
static AVector |
Vectorz.join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
void |
Vector3.projectToPlane(AVector normal,
double distance) |
void |
AVector.projectToPlane(AVector normal,
double distance) |
void |
AVector.scaleAdd(double factor,
AVector v) |
void |
AVector.set(AVector a)
Sets the vector to equal the value of another vector
|
void |
Vector.sub(AVector v) |
void |
AVector.sub(AVector v)
Subtracts a vector from this vector
|
void |
AVector.subMultiple(AVector v,
double factor)
Subtracts a scaled multiple of another vector from this vector
|
| Modifier and Type | Method and Description |
|---|---|
static AVector |
Vectorz.join(List<AVector> vectors) |
| Constructor and Description |
|---|
Vector(AVector source)
Copy constructor from an arbitrary vector
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArraySubVector
Vector referring to an offset into a double[] array
|
class |
IndexedArrayVector
Vector that addresses elements indexed into double[] array
|
class |
IndexedSubVector
Vector that addresses elements indexed into another source vector
|
class |
JoinedVector
A vector that represents the concatenation of two vectors.
|
class |
WrappedSubVector |
class |
ZeroLengthVector
Special singleton zero length vector class.
|
class |
ZeroVector |
| Modifier and Type | Method and Description |
|---|---|
AVector |
ArraySubVector.clone() |
AVector |
JoinedVector.subVector(int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
static IndexedSubVector |
IndexedSubVector.wrap(AVector source,
int[] indexes) |
| Constructor and Description |
|---|
JoinedVector(AVector left,
AVector right) |
WrappedSubVector(AVector source,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
VectorBuilder.toVector() |
Copyright © 2012. All Rights Reserved.