public class RightExtendedMatrix<T> extends Matrix<T>
Constructor and Description |
---|
RightExtendedMatrix(Matrix<T> matrix)
Constructor for the RightExtendedMatrix, will use a matrix a source and
use it for every value that is in.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the Matrix
|
T |
getValue(int x,
int y)
Returns the value contained by the cell of the Matrix at (x, y)
|
int |
getWidth()
Gets the width of the Matrix
|
void |
setValue(int x,
int y,
T value)
Changes the value contained by the cell of the Matrix at (x, y), returns
null if the position doesn't exists
|
public RightExtendedMatrix(Matrix<T> matrix)
matrix
- Matrix to use as sourcepublic int getHeight()
Matrix
public int getWidth()
Matrix
public T getValue(int x, int y)
Matrix