Class AffineTransformations

java.lang.Object
gaiasky.scene.component.AffineTransformations
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class AffineTransformations extends Object implements com.badlogic.ashley.core.Component
Provides an arbitrary number of affine transformations (rotate, scale, translate) to be applied to matrices.
  • Field Details

    • transformations

      public com.badlogic.gdx.utils.Array<ITransform> transformations
      Affine transformations, applied each cycle
  • Constructor Details

    • AffineTransformations

      public AffineTransformations()
  • Method Details

    • setTransformations

      public void setTransformations(Object[] transformations)
    • setTranslate

      public void setTranslate(double[] translation)
    • setTranslatePc

      public void setTranslatePc(double[] translation)
    • setRotate

      public void setRotate(double[] axisDegrees)
    • setScale

      public void setScale(double[] sc)
    • apply

      public com.badlogic.gdx.math.Matrix4 apply(com.badlogic.gdx.math.Matrix4 mat)
    • apply

      public Matrix4d apply(Matrix4d mat)
    • getScaleTransform

      public ScaleTransform getScaleTransform()
    • getRotateTransform

      public RotateTransform getRotateTransform()
    • getTranslateTransform

      public TranslateTransform getTranslateTransform()