Class MatrixTransform

java.lang.Object
gaiasky.scene.record.MatrixTransform
All Implemented Interfaces:
ITransform

public class MatrixTransform extends Object implements ITransform
A generic 4x4 matrix transformation.
  • 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

      public MatrixTransform(Matrix4d mat)
    • 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

      public void setMatrix(Matrix4d mat)
    • apply

      public void apply(com.badlogic.gdx.math.Matrix4 mat)
      Specified by:
      apply in interface ITransform
    • apply

      public void apply(Matrix4d mat)
      Specified by:
      apply in interface ITransform
    • isEmpty

      public boolean isEmpty()
    • getMatDouble

      public Matrix4d getMatDouble()
    • getMatFloat

      public com.badlogic.gdx.math.Matrix4 getMatFloat()
    • copy

      public ITransform copy()
      Specified by:
      copy in interface ITransform