Class Matrix4
- Object
-
- GeneralMatrix
-
- Matrix4
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Matrix
,Cloneable
,XMatrix
public class Matrix4 extends GeneralMatrix implements XMatrix
- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
SIZE
The matrix size, which is 4.
-
Constructor Summary
Constructors Constructor Description Matrix4()
Creates a new identity matrix.Matrix4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
Creates a new matrix initialized to the specified values.Matrix4(Matrix matrix)
Creates a new matrix initialized to the same value than the specified one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matrix4
clone()
Returns a clone of this matrix.int
getNumCol()
Returns the number of colmuns in this matrix, which is always 4 in this implementation.int
getNumRow()
Returns the number of rows in this matrix, which is always 4 in this implementation.-
Methods inherited from class GeneralMatrix
add, add, add, add, copySubMatrix, determinate, equals, equals, getColumn, getElement, getElements, getElements, getRow, hashCode, invert, invert, isAffine, isIdentity, isIdentity, load, load, mul, mul, mul, mul, multiply, negate, negate, set, setColumn, setElement, setIdentity, setRow, setSize, setZero, sub, sub, sub, sub, toAffineTransform2D, toString, transpose, transpose
-
Methods inherited from interface Matrix
isIdentity, setElement
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
The matrix size, which is 4.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Matrix4
public Matrix4()
Creates a new identity matrix.
-
Matrix4
public Matrix4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
Creates a new matrix initialized to the specified values.
-
Matrix4
public Matrix4(Matrix matrix)
-
-
Method Detail
-
getNumRow
public final int getNumRow()
Returns the number of rows in this matrix, which is always 4 in this implementation.
-
getNumCol
public final int getNumCol()
Returns the number of colmuns in this matrix, which is always 4 in this implementation.
-
clone
public Matrix4 clone()
Returns a clone of this matrix.- Specified by:
clone
in interfaceCloneable
- Specified by:
clone
in interfaceMatrix
- Overrides:
clone
in classGeneralMatrix
- Returns:
- A clone of this matrix.
- See Also:
Object.clone()
-
-