| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Method and Description |
|---|---|
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.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. |
static <V extends VectorWritable4DType> |
MatrixM4x4D.multiplyVector4D(MatrixM4x4D.ContextMM4D context,
MatrixReadable4x4DType m,
VectorReadable4DType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
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. |
Copyright © 2017 <code@io7m.com> http://io7m.com