| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Method and Description |
|---|---|
static <M extends MatrixWritable3x3FType> |
MatrixM3x3F.addRowScaled(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType 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 MatrixWritable3x3FType & MatrixReadable3x3FType> |
MatrixM3x3F.addRowScaledInPlace(MatrixM3x3F.ContextMM3F 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 MatrixWritable3x3FType> |
MatrixM3x3F.exchangeRows(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType 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 MatrixWritable3x3FType & MatrixReadable3x3FType> |
MatrixM3x3F.exchangeRowsInPlace(MatrixM3x3F.ContextMM3F 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 MatrixWritable3x3FType> |
MatrixM3x3F.invert(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType m,
M out)
Calculate the inverse of the matrix
m, saving the resulting matrix
to out. |
static <M extends MatrixWritable3x3FType & MatrixReadable3x3FType> |
MatrixM3x3F.invertInPlace(MatrixM3x3F.ContextMM3F c,
M m)
Calculate the inverse of the matrix
m, saving the resulting matrix
to m. |
static <V extends VectorWritable3FType,M extends MatrixWritable3x3FType> |
MatrixM3x3F.lookAt(MatrixM3x3F.ContextMM3F context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType 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 VectorWritable3FType> |
MatrixM3x3F.multiplyVector3F(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType m,
VectorReadable3FType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static <M extends MatrixWritable3x3FType> |
MatrixM3x3F.scaleRow(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType 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 MatrixWritable3x3FType & MatrixReadable3x3FType> |
MatrixM3x3F.scaleRowInPlace(MatrixM3x3F.ContextMM3F 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 © 2016 <code@io7m.com> http://io7m.com