Package com.badlogic.gdx.math

Examples of com.badlogic.gdx.math.Matrix3


    batch.setTransformMatrix(newBatchTransform);
    batch.begin();
  }

  protected Matrix4 updateTransform () {
    Matrix3 temp = worldTransform;
    if (originX != 0 || originY != 0)
      localTransform.setToTranslation(originX, originY);
    else
      localTransform.idt();
    if (rotation != 0) localTransform.mul(temp.setToRotation(rotation));
    if (scaleX != 1 || scaleY != 1) localTransform.mul(temp.setToScaling(scaleX, scaleY));
    if (originX != 0 || originY != 0) localTransform.mul(temp.setToTranslation(-originX, -originY));
    localTransform.trn(x, y);

    Group parentGroup = parent;
    while (parentGroup != null) {
      if (parentGroup.transform) break;
View Full Code Here


    batch.setTransformMatrix(transform);
  }

  /** Returns the transform for this group's coordinate system. */
  protected Matrix4 computeTransform () {
    Matrix3 temp = worldTransform;

    float originX = this.originX;
    float originY = this.originY;
    float rotation = this.rotation;
    float scaleX = this.scaleX;
View Full Code Here

    batch.setTransformMatrix(transform);
  }

  /** Returns the transform for this group's coordinate system. */
  protected Matrix4 computeTransform () {
    Matrix3 temp = worldTransform;

    float originX = this.originX;
    float originY = this.originY;
    float rotation = this.rotation;
    float scaleX = this.scaleX;
View Full Code Here

    children.end();
  }

  /** Returns the transform for this group's coordinate system. */
  protected Matrix4 computeTransform () {
    Matrix3 worldTransform = this.worldTransform;
    Matrix3 localTransform = this.localTransform;

    float originX = this.originX;
    float originY = this.originY;
    float rotation = this.rotation;
    float scaleX = this.scaleX;
    float scaleY = this.scaleY;

    if (originX != 0 || originY != 0)
      localTransform.setToTranslation(originX, originY);
    else
      localTransform.idt();
    if (rotation != 0) localTransform.rotate(rotation);
    if (scaleX != 1 || scaleY != 1) localTransform.scale(scaleX, scaleY);
    if (originX != 0 || originY != 0) localTransform.translate(-originX, -originY);
    localTransform.trn(x, y);

    // Find the first parent that transforms.
    Group parentGroup = parent;
    while (parentGroup != null) {
      if (parentGroup.transform) break;
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.math.Matrix3

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.