rlgamekit.fieldofview
Class Matrix
java.lang.Object
rlgamekit.fieldofview.Matrix
public class Matrix
- extends java.lang.Object
2D integer matrix class.
|
Field Summary |
int |
a
|
int |
b
|
int |
c
|
int |
d
|
|
Constructor Summary |
Matrix()
|
Matrix(int aa,
int bb,
int cc,
int dd)
|
|
Method Summary |
java.awt.Point |
mult(java.awt.Point k)
Matrix multiplication with 2D vector (aka Point) |
int |
multX(int kX,
int kY)
X component of multiplication (no object allocation) |
int |
multY(int kX,
int kY)
Y component of multiplication (no object allocation) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
a
public int a
b
public int b
c
public int c
d
public int d
Matrix
public Matrix()
Matrix
public Matrix(int aa,
int bb,
int cc,
int dd)
mult
public java.awt.Point mult(java.awt.Point k)
- Matrix multiplication with 2D vector (aka Point)
- Parameters:
k - The 2D vector to multiply with
- Returns:
- the new vector (a Point object).
multX
public int multX(int kX,
int kY)
- X component of multiplication (no object allocation)
multY
public int multY(int kX,
int kY)
- Y component of multiplication (no object allocation)