Class SimpleMatrix

Object
GMatrix
SimpleMatrix
All Implemented Interfaces:
Serializable, Cloneable, Matrix

public class SimpleMatrix extends GMatrix implements Matrix
A Matrix built on top of Java3D vecmath library.
Since:
3.1
See Also:
  • Constructor Details

    • SimpleMatrix

      public SimpleMatrix(int numRow, int numCol)
      Creates a matrix of size numRow × numCol. Elements on the diagonal (j == i) are set to 1.
      Parameters:
      numRow - number of rows.
      numCol - number of columns.
    • SimpleMatrix

      public SimpleMatrix(Matrix matrix)
      Creates a new matrix initialized to the same content than the given matrix.
      Parameters:
      matrix - the matrix to copy.
  • Method Details

    • isIdentity

      public boolean isIdentity()
      Returns true if this matrix is an identity matrix.
      Specified by:
      isIdentity in interface Matrix
      Returns:
      true if this matrix is an identity matrix.
    • clone

      public SimpleMatrix clone()
      Returns a clone of this matrix.
      Specified by:
      clone in interface Matrix
      Overrides:
      clone in class GMatrix
      Returns:
      a modifiable copy of this matrix.