| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static MatrixM4x4D |
MatrixM4x4D.addRowScaledWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4D 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 MatrixM4x4D |
MatrixM4x4D.exchangeRowsInPlaceWithContext(MatrixM4x4D.Context context,
MatrixM4x4D 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 MatrixM4x4D |
MatrixM4x4D.exchangeRowsWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
MatrixM4x4D out)
Exchange two rows
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static com.io7m.jfunctional.OptionType<MatrixM4x4D> |
MatrixM4x4D.invertInPlaceWithContext(MatrixM4x4D.Context context,
MatrixM4x4D m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
static com.io7m.jfunctional.OptionType<MatrixM4x4D> |
MatrixM4x4D.invertWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
MatrixM4x4D out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static void |
MatrixM4x4D.lookAtWithContext(MatrixM4x4D.Context context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
MatrixM4x4D out_matrix)
Calculate a matrix representing a "camera" looking from the point
origin to the point target. |
static VectorM4D |
MatrixM4x4D.multiplyVector4DWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static MatrixM4x4D |
MatrixM4x4D.rotateInPlaceWithContext(MatrixM4x4D.Context context,
double angle,
MatrixM4x4D m,
VectorReadable3DType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM4x4D |
MatrixM4x4D.rotateWithContext(MatrixM4x4D.Context context,
double angle,
MatrixReadable4x4DType m,
VectorReadable3DType axis,
MatrixM4x4D out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4D |
MatrixM4x4D.scaleRowInPlaceWithContext(MatrixM4x4D.Context context,
MatrixM4x4D m,
int row,
double r)
Scale row
row of the matrix m by r
, saving the result to row r of m. |
static MatrixM4x4D |
MatrixM4x4D.scaleRowWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row,
double r,
MatrixM4x4D out)
Scale row
row of the matrix m by r
, saving the result to row r of out. |
Copyright © 2014 <code@io7m.com> http://io7m.com