Class CombinedTransform

java.lang.Object
com.sk89q.worldedit.math.transform.CombinedTransform
All Implemented Interfaces:
Transform

public class CombinedTransform extends Object implements Transform
Combines several transforms in order.
  • Constructor Details

    • CombinedTransform

      public CombinedTransform(Transform... transforms)
      Create a new combined transformation.
      Parameters:
      transforms - a list of transformations
    • CombinedTransform

      public CombinedTransform(Collection<Transform> transforms)
      Create a new combined transformation.
      Parameters:
      transforms - a list of transformations
  • Method Details

    • isIdentity

      public boolean isIdentity()
      Description copied from interface: Transform
      Return whether this transform is an identity.

      If it is not known, then false must be returned.

      Specified by:
      isIdentity in interface Transform
      Returns:
      true if identity
    • apply

      public Vector3 apply(Vector3 vector)
      Description copied from interface: Transform
      Returns the result of applying the function to the input.
      Specified by:
      apply in interface Transform
      Parameters:
      vector - the input
      Returns:
      the result
    • inverse

      public Transform inverse()
      Description copied from interface: Transform
      Create a new inverse transform.
      Specified by:
      inverse in interface Transform
      Returns:
      a new inverse transform
    • combine

      public Transform combine(Transform other)
      Description copied from interface: Transform
      Create a new Transform that combines this transform with another.
      Specified by:
      combine in interface Transform
      Parameters:
      other - the other transform to occur second
      Returns:
      a new transform