Package gaiasky.scene.component
Class AffineTransformations
java.lang.Object
gaiasky.scene.component.AffineTransformations
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
Provides an arbitrary number of affine transformations (rotate, scale, translate) to be applied
to matrices.
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<ITransform>
Affine transformations, applied each cycle -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Matrix4
apply
(com.badlogic.gdx.math.Matrix4 mat) void
setRotate
(double[] axisDegrees) void
setScale
(double[] sc) void
setTransformations
(Object[] transformations) void
setTranslate
(double[] translation) void
setTranslatePc
(double[] translation)
-
Field Details
-
transformations
Affine transformations, applied each cycle
-
-
Constructor Details
-
AffineTransformations
public AffineTransformations()
-
-
Method Details
-
setTransformations
-
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
-
getScaleTransform
-
getRotateTransform
-
getTranslateTransform
-