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
  • 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)
    • initialize

      public void initialize()
    • setTranslate

      public void setTranslate(double[] translation)
    • setTranslatePc

      public void setTranslatePc(double[] translation)
    • setTranslateKm

      public void setTranslateKm(double[] translation)
    • setQuaternion

      public void setQuaternion(double[] axis, double angle)
    • setRotate

      public void setRotate(double[] axisDegrees)
    • setScale

      public void setScale(double[] sc)
    • 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()