| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.addRowScaled(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType 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 MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.addRowScaledInPlace(MatrixM3x3D.ContextMM3D c,
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 m. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.exchangeRows(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
int row_a,
int row_b,
M out)
Exchange the row
row_a and row row_b of the matrix
m, saving the exchanged rows to out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.exchangeRowsInPlace(MatrixM3x3D.ContextMM3D c,
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 MatrixWritable3x3DType> |
MatrixM3x3D.invert(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
M out)
Calculate the inverse of the matrix
m, saving the resulting matrix
to out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.invertInPlace(MatrixM3x3D.ContextMM3D c,
M m)
Calculate the inverse of the matrix
m, saving the resulting matrix
to m. |
static <M extends MatrixWritable3x3DType,V extends VectorWritable3DType> |
MatrixM3x3D.lookAt(MatrixM3x3D.ContextMM3D context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
M out_matrix,
V out_translation)
Calculate a rotation and translation representing a "camera" looking
from the point
origin to the point target. |
static <V extends VectorWritable3DType> |
MatrixM3x3D.multiplyVector3D(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
VectorReadable3DType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static <M extends MatrixWritable3x3DType> |
MatrixM3x3D.scaleRow(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
int row,
double r,
M out)
Scale row
r of the matrix m by r, saving the
result to row r of out. |
static <M extends MatrixWritable3x3DType & MatrixReadable3x3DType> |
MatrixM3x3D.scaleRowInPlace(MatrixM3x3D.ContextMM3D c,
M m,
int row,
double r)
Scale row
r of the matrix m by r, saving the
result to row r of m. |
Copyright © 2017 <code@io7m.com> http://io7m.com