public enum MatrixType extends Enum<MatrixType>
Enum Constant and Description |
---|
MT_2D_2x3
A 2D affine transformation matrix of 2 rows and 3 columns containing
the following values:
|
MT_2D_3x3
A 2D transformation matrix of 3 rows and 3 columns.
|
MT_3D_3x4
A 3D affine transformation matrix of 3 rows and 4 columns containing
the following values:
|
MT_3D_4x4
A 3D transformation matrix of 4 rows and 4 columns.
|
Modifier and Type | Method and Description |
---|---|
int |
columns()
Returns the number of columns in the matrix of this type.
|
int |
elements()
Returns the number of elements in the matrix of this type.
|
boolean |
is2D()
Specifies if this is a 2D transformation matrix
|
int |
rows()
Returns the number of rows in the matrix of this type.
|
static MatrixType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatrixType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatrixType MT_2D_2x3
mxx, mxy, tx, myx, myy, ty
public static final MatrixType MT_2D_3x3
mxx, mxy, tx, myx, myy, ty, 0, 0, 1
public static final MatrixType MT_3D_3x4
mxx, mxy, mxz, tx, myx, myy, myz, ty, mzx, mzy, mzz, tz
public static final MatrixType MT_3D_4x4
mxx, mxy, mxz, tx, myx, myy, myz, ty, mzx, mzy, mzz, tz, 0, 0, 0, 1
public static MatrixType[] values()
for (MatrixType c : MatrixType.values()) System.out.println(c);
public static MatrixType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int elements()
public int rows()
public int columns()
public boolean is2D()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.