| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| com.io7m.jtensors.bytebuffered |
ByteBuffer backed tensors. |
| com.io7m.jtensors.bytebuffered.parameterized |
ByteBuffer backed parameterized tensors. |
| com.io7m.jtensors.parameterized |
Parameterized vector and matrix types.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Matrix4x4DType
The type of 4x4 matrices with
double elements. |
interface |
MatrixDirect4x4DType
The type of 4x4 matrices with
double elements that are backed by
direct byte buffers. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixDirectM4x4D
The default implementation of the
MatrixDirect4x4DType
interface. |
class |
MatrixHeapArrayM4x4D
The default implementation of the
Matrix4x4DType interface. |
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.add(MatrixReadable4x4DType m0,
MatrixReadable4x4DType m1,
M out)
Elementwise add of matrices
m0 and m1. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.addInPlace(M m0,
MatrixReadable4x4DType m1)
Elementwise add of matrices
m0 and m1, returning the result
in m0. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.addRowScaled(MatrixM4x4D.ContextMM4D context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
int row_c,
double r,
M out)
Add the values in row
row_b to the values in row row_a
scaled by r, saving the resulting row in row row_c of the
matrix out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.addRowScaledInPlace(MatrixM4x4D.ContextMM4D context,
M m,
int row_a,
int row_b,
int row_c,
double r)
Add the values in row
row_b to the values in row row_a
scaled by r, saving the resulting row in row row_c of the
matrix out. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.copy(MatrixReadable4x4DType input,
M output)
Copy the contents of the matrix
input to the matrix output,
completely replacing all elements. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.exchangeRows(MatrixM4x4D.ContextMM4D context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
M out)
Exchange two rows
row_a and row row_b of the matrix
m, saving the exchanged rows to out . |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.exchangeRowsInPlace(MatrixM4x4D.ContextMM4D context,
M m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the matrix
m, saving the exchanged rows to m. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.invert(MatrixM4x4D.ContextMM4D context,
MatrixReadable4x4DType m,
M out)
Calculate the inverse of the matrix
m, saving the resulting matrix
to out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.invertInPlace(MatrixM4x4D.ContextMM4D context,
M m)
Calculate the inverse of the matrix
m, saving the resulting matrix
to m. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.lookAt(MatrixM4x4D.ContextMM4D context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
M out_matrix)
Calculate a matrix representing a "camera" looking from the point
origin to the point target. |
<M extends MatrixWritable4x4DType> |
MatrixI4x4D.makeMatrixM4x4D(M m)
Write the current matrix into the given mutable matrix.
|
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.makeRotation(double angle,
VectorReadable3DType axis,
M out)
Generate a matrix that represents a rotation of
angle radians
around the axis axis and save to out. |
static <M extends MatrixWritable4x4DType> |
QuaternionM4D.makeRotationMatrix4x4(QuaternionReadable4DType q,
M m)
Produce a rotation matrix from the quaternion
q, saving the result
to m. |
static <M extends MatrixWritable4x4DType> |
QuaternionI4D.makeRotationMatrix4x4(QuaternionReadable4DType q,
M m)
Produce a rotation matrix from the quaternion
q, saving the result
to m. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.makeTranslation2D(VectorReadable2DType v,
M out)
Generate a matrix that represents a translation of
(v.x, v.y) from
the origin, and save to out. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.makeTranslation2I(VectorReadable2IType v,
M out)
Generate a matrix that represents a translation of
(v.x, v.y) from
the origin, and save to out. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.makeTranslation3D(VectorReadable3DType v,
M out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z)
from the origin, and save to out. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.makeTranslation3I(VectorReadable3IType v,
M out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z)
from the origin, and save to out. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.multiply(MatrixReadable4x4DType m0,
MatrixReadable4x4DType m1,
M out)
Multiply the matrix
m0 with the matrix m1, writing the
result to out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.multiplyInPlace(M m0,
MatrixReadable4x4DType m1)
Multiply the matrix
m0 with the matrix m1, writing the
result to m0. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.scale(MatrixReadable4x4DType m,
double r,
M out)
Scale all elements of the matrix
m by the scaling value r,
saving the result in out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.scaleInPlace(M m,
double r)
Scale all elements of the matrix
m by the scaling value r,
saving the result in m. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.scaleRow(MatrixM4x4D.ContextMM4D context,
MatrixReadable4x4DType m,
int row,
double r,
M out)
Scale row
row of the matrix m by r , saving the
result to row r of out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.scaleRowInPlace(MatrixM4x4D.ContextMM4D context,
M m,
int row,
double r)
Scale row
row of the matrix m by r , saving the
result to row r of m. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.setIdentity(M m)
Set the given matrix
m to the identity matrix. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.setZero(M m)
Set the given matrix
m to the zero matrix. |
static <M extends MatrixWritable4x4DType> |
MatrixM4x4D.transpose(MatrixReadable4x4DType m,
M out)
Transpose the given matrix
m, writing the resulting matrix to
out. |
static <M extends MatrixWritable4x4DType & MatrixReadable4x4DType> |
MatrixM4x4D.transposeInPlace(M m)
Transpose the given matrix
m, writing the resulting matrix to
m. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MatrixByteBuffered4x4DType
The type of
Matrix4x4DType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixByteBufferedM4x4D
A 4x4 matrix type with
double elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrixByteBuffered4x4DType<T0,T1>
The type of
PMatrix4x4DType values that are also byte
buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixByteBufferedM4x4D<T0,T1>
A 4x4 matrix type with
double elements, packed into a ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PMatrix4x4DType<T0,T1>
The type of 4x4 matrices with
double elements. |
interface |
PMatrixDirect4x4DType<T0,T1>
The type of 4x4 matrices with
double elements that are backed by
direct byte buffers. |
interface |
PMatrixWritable4x4DType<T,U>
'Write' interface to 4x4 matrices with
double elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PMatrixDirectM4x4D<T0,T1>
The default implementation of the
PMatrixDirect4x4DType interface. |
class |
PMatrixHeapArrayM4x4D<T0,T1>
The default implementation of the
PMatrix4x4DType interface. |
| Modifier and Type | Method and Description |
|---|---|
void |
PMatrixI4x4D.makeMatrix4x4DUntyped(MatrixWritable4x4DType m)
Write the current matrix into the given mutable matrix.
|
Copyright © 2015 <code@io7m.com> http://io7m.com