Class Transform3D

java.lang.Object
nl.colorize.multimedialib.stage.Transform3D

public class Transform3D extends Object
Transformation matrix that controls how polygonal 3D graphics are displayed. This class is the equivalent of Transform but for 3D graphics. The following transform properties are available:

  • Position
  • Rotation (in degrees)
  • Scale (as a percentage of the original)
  • Alpha (as a percentage, with 0% being fully transparent)
>
  • Constructor Details

    • Transform3D

      public Transform3D()
  • Method Details

    • set

      public void set(Transform3D source)
    • setPosition

      public void setPosition(float x, float y, float z)
    • addPosition

      public void addPosition(float deltaX, float deltaY, float deltaZ)
    • setX

      public void setX(float x)
    • setY

      public void setY(float y)
    • setZ

      public void setZ(float z)
    • setRotation

      public void setRotation(float rotationX, float rotationY, float rotationZ)
    • addRotation

      public void addRotation(float degreesX, float degreesY, float degreesZ)
    • setScale

      public void setScale(float scaleX, float scaleY, float scaleZ)
    • setScale

      public void setScale(float scale)
    • combine

      public Transform3D combine(Transform3D other)
      Returns a new Transform3D instance that is the result of combining this transform with the specified other transform.
    • setVisible

      public void setVisible(boolean visible)
    • setPosition

      public void setPosition(Point3D position)
    • setRotationX

      public void setRotationX(Angle rotationX)
    • setRotationY

      public void setRotationY(Angle rotationY)
    • setRotationZ

      public void setRotationZ(Angle rotationZ)
    • setScaleX

      public void setScaleX(float scaleX)
    • setScaleY

      public void setScaleY(float scaleY)
    • setScaleZ

      public void setScaleZ(float scaleZ)
    • isVisible

      public boolean isVisible()
    • getPosition

      public Point3D getPosition()
    • getRotationX

      public Angle getRotationX()
    • getRotationY

      public Angle getRotationY()
    • getRotationZ

      public Angle getRotationZ()
    • getScaleX

      public float getScaleX()
    • getScaleY

      public float getScaleY()
    • getScaleZ

      public float getScaleZ()