public class Matrix
extends java.lang.Object
Constructor and Description |
---|
Matrix() |
Matrix(double[][] data) |
Matrix(int nrows,
int ncolumns) |
Modifier and Type | Method and Description |
---|---|
Matrix |
add(Matrix other) |
double |
det() |
double |
get(int row,
int col) |
Vector |
getColumn(int n) |
int |
getColumns() |
double[][] |
getData() |
Vector |
getRow(int n) |
int |
getRows() |
Matrix |
inv() |
static Matrix |
makeDiag(Vector v) |
static Matrix |
makeRotation(Matrix rotation) |
static Matrix |
makeScale(Vector scale) |
static Matrix |
makeTranslation(Vector translation) |
Matrix |
mul(double c) |
Matrix |
mul(Matrix other) |
Vector |
mul(Vector other) |
Vector |
mulp(Vector other) |
Vector |
mulv(Vector other) |
Matrix |
rotation() |
double |
scale() |
Vector |
scale3() |
void |
set(int row,
int col,
double value) |
void |
setData(double[][] data) |
Matrix |
sub(Matrix other) |
Matrix |
t() |
Vector |
translation() |
public Matrix()
public Matrix(int nrows, int ncolumns)
public Matrix(double[][] data)
public int getRows()
public int getColumns()
public double get(int row, int col)
public void set(int row, int col, double value)
public double[][] getData()
public void setData(double[][] data)
public Matrix mul(double c)
public Matrix t()
public Vector getRow(int n)
public Vector getColumn(int n)
public double det()
public Matrix inv()
public Vector translation()
public double scale()
public Vector scale3()
public Matrix rotation()