public class Mat2f extends Object
| Modifier and Type | Field and Description |
|---|---|
private float[] |
data |
| Constructor and Description |
|---|
Mat2f()
Creates new matrix initialized to the zero matrix
|
| Modifier and Type | Method and Description |
|---|---|
float |
determinant()
Return the determinant.
|
float |
get(int i,
int j)
Gets the (i,j)th element of this matrix, where i is the row
index and j is the column index
|
boolean |
invert()
Full matrix inversion in place.
|
void |
makeIdent()
Initialize to the identity matrix.
|
Mat2f |
mul(Mat2f b)
Returns this * b; creates new matrix
|
void |
mul(Mat2f a,
Mat2f b)
this = a * b
|
void |
set(int i,
int j,
float val)
Sets the (i,j)th element of this matrix, where i is the row
index and j is the column index
|
void |
setCol(int i,
Vec2f v)
Set column i (i=[0..1]) to vector v.
|
void |
setRow(int i,
Vec2f v)
Set row i (i=[0..1]) to vector v.
|
Matf |
toMatf() |
String |
toString() |
void |
transpose()
Transpose this matrix in place.
|
void |
xformVec(Vec2f src,
Vec2f dest)
Multiply a 2D vector by this matrix.
|
public void makeIdent()
public float get(int i,
int j)
public void set(int i,
int j,
float val)
public void setCol(int i,
Vec2f v)
public void setRow(int i,
Vec2f v)
public void transpose()
public float determinant()
public boolean invert()
public void xformVec(Vec2f src, Vec2f dest)
public Matf toMatf()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.