Class MatrixTransform
java.lang.Object
gaiasky.scene.record.MatrixTransform
- All Implemented Interfaces:
ITransform
A generic 4x4 matrix transformation.
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixTransform(double[] mat) Constructs a matrix transform.MatrixTransform(float[] mat) Constructs a matrix transform.MatrixTransform(com.badlogic.gdx.math.Matrix4 mat) MatrixTransform(Matrix4D mat) -
Method Summary
-
Constructor Details
-
MatrixTransform
public MatrixTransform() -
MatrixTransform
public MatrixTransform(double[] mat) Constructs a matrix transform.- Parameters:
mat- The matrix values in column-major order.
-
MatrixTransform
public MatrixTransform(float[] mat) Constructs a matrix transform.- Parameters:
mat- The matrix values in column-major order.
-
MatrixTransform
-
MatrixTransform
public MatrixTransform(com.badlogic.gdx.math.Matrix4 mat)
-
-
Method Details
-
setMatrix
public void setMatrix(float[] mat) -
setMatrix
public void setMatrix(com.badlogic.gdx.math.Matrix4 mat) -
setMatrix
public void setMatrix(double[] mat) -
setMatrix
-
apply
public void apply(com.badlogic.gdx.math.Matrix4 mat) - Specified by:
applyin interfaceITransform
-
apply
- Specified by:
applyin interfaceITransform
-
isEmpty
public boolean isEmpty() -
getMatDouble
-
getMatFloat
public com.badlogic.gdx.math.Matrix4 getMatFloat() -
copy
- Specified by:
copyin interfaceITransform
-