com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class TransformBuilder



  • public class TransformBuilder
    extends Object
    The TransformBuilder is used to build transform matrix by a chain of transformations.
    • Constructor Detail

      • TransformBuilder

        public TransformBuilder(Matrix4 initial,
                                ComposeOrder order)
        Construct a TransformBuilder with initial transform matrix and specified compose order
        Parameters:
        initial -
        order -
      • TransformBuilder

        public TransformBuilder(ComposeOrder order)
        Construct a TransformBuilder with initial identity transform matrix and specified compose order
        Parameters:
        order -
      • TransformBuilder

        public TransformBuilder()
        Construct a TransformBuilder with initial identity transform matrix and specified compose order
    • Method Detail

      • getMatrix

        public Matrix4 getMatrix()
        Gets the current matrix value
      • setMatrix

        public void setMatrix(Matrix4 value)
        Sets the current matrix value
        Parameters:
        value - New value
      • getComposeOrder

        public ComposeOrder getComposeOrder()
        Gets the chain compose order.
      • setComposeOrder

        public void setComposeOrder(ComposeOrder value)
        Sets the chain compose order.
        Parameters:
        value - New value
      • compose

        public void compose(Matrix4 m)
        Append or prepend the argument to internal matrix.
        Parameters:
        m -
      • append

        public TransformBuilder append(Matrix4 m)
        Append the new transform matrix to the transform chain.
        Parameters:
        m -
      • prepend

        public TransformBuilder prepend(Matrix4 m)
        Prepend the new transform matrix to the transform chain.
        Parameters:
        m -
      • rearrange

        public TransformBuilder rearrange(Axis newX,
                                          Axis newY,
                                          Axis newZ)
        Rearrange the layout of the axis.
        Parameters:
        newX - The new x component source
        newY - The new y component source
        newZ - The new z component source
      • scale

        public TransformBuilder scale(double s)
        Chain a scaling transform matrix with a component scaled by s
        Parameters:
        s -
      • scale

        public TransformBuilder scale(double x,
                                      double y,
                                      double z)
        Chain a scaling transform matrix
        Parameters:
        x -
        y -
        z -
      • rotateDegree

        public TransformBuilder rotateDegree(double angle,
                                             Vector3 axis)
        Chain a rotation transform in degree
        Parameters:
        angle - The angle to rotate in degree
        axis - The axis to rotate
      • rotateRadian

        public TransformBuilder rotateRadian(double angle,
                                             Vector3 axis)
        Chain a rotation transform in radian
        Parameters:
        angle - The angle to rotate in radian
        axis - The axis to rotate
      • rotateEulerDegree

        public TransformBuilder rotateEulerDegree(double degX,
                                                  double degY,
                                                  double degZ)
        Chain a rotation by euler angles in degree
        Parameters:
        degX -
        degY -
        degZ -
      • rotateEulerRadian

        public TransformBuilder rotateEulerRadian(double x,
                                                  double y,
                                                  double z)
        Chain a rotation by euler angles in radian
        Parameters:
        x -
        y -
        z -
      • rotateEulerRadian

        public TransformBuilder rotateEulerRadian(Vector3 r)
        Chain a rotation by euler angles in radian
        Parameters:
        r -
      • translate

        public TransformBuilder translate(double tx,
                                          double ty,
                                          double tz)
        Chain a translation transform
        Parameters:
        tx -
        ty -
        tz -
      • reset

        public void reset()
        Reset the transform to identity matrix