Enum MatrixType

    • Enum Constant Detail

      • MT_2D_2x3

        public static final MatrixType MT_2D_2x3
        A 2D affine transformation matrix of 2 rows and 3 columns. Contains the following values:
         mxx, mxy, tx,
         myx, myy, ty
         
      • MT_2D_3x3

        public static final MatrixType MT_2D_3x3
        A 2D transformation matrix of 3 rows and 3 columns. For affine transforms the last line is constant, so the matrix contains the following values:
         mxx, mxy, tx,
         myx, myy, ty,
           0,   0,  1
         
      • MT_3D_3x4

        public static final MatrixType MT_3D_3x4
        A 3D affine transformation matrix of 3 rows and 4 columns. Contains the following values:
         mxx, mxy, mxz, tx,
         myx, myy, myz, ty,
         mzx, mzy, mzz, tz
         
      • MT_3D_4x4

        public static final MatrixType MT_3D_4x4
        A 3D transformation matrix of 4 rows and 4 columns. For affine transforms the last line is constant, so the matrix contains the following values:
         mxx, mxy, mxz, tx,
         myx, myy, myz, ty,
         mzx, mzy, mzz, tz,
           0,   0,   0,  1
         
    • Method Detail

      • values

        public static MatrixType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MatrixType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • elements

        public int elements()
        Returns the number of elements in the matrix of this type.
        Returns:
        the number of elements in the matrix of this type
      • rows

        public int rows()
        Returns the number of rows in the matrix of this type.
        Returns:
        the number of rows in the matrix of this type
      • columns

        public int columns()
        Returns the number of columns in the matrix of this type.
        Returns:
        the number of columns in the matrix of this type
      • is2D

        public boolean is2D()
        Specifies if this is a 2D transformation matrix
        Returns:
        true if this is a 2D transformation matrix, false if this is a 3D transformation matrix