类 ITransformation<Vector,Transformation extends ITransformation<Vector,Transformation>>

java.lang.Object
committee.nova.mods.avaritia.api.util.vec.ITransformation<Vector,Transformation>
类型参数:
Vector - The vector type
Transformation - The transformation type
所有已实现的接口:
Copyable<Transformation>
直接已知子类:
Transformation, UVTransformation

public abstract class ITransformation<Vector,Transformation extends ITransformation<Vector,Transformation>> extends Object implements Copyable<Transformation>
Abstract supertype for any VectorN transformation
  • 构造器详细资料

    • ITransformation

      public ITransformation()
  • 方法详细资料

    • apply

      public abstract void apply(Vector vec)
      Applies this transformation to vec
    • at

      public abstract Transformation at(Vector point)
      参数:
      point - The point to apply this transformation around
      返回:
      Wraps this transformation in a translation to point and then back from point
    • with

      public abstract Transformation with(Transformation t)
      Creates a TransformationList composed of this transformation followed by t If this is a TransformationList, the transformation will be appended and this returned
    • merge

      @Nullable public Transformation merge(Transformation next)
      Returns a simplified transformation that performs this, followed by next. If such a transformation does not exist, returns null
    • isRedundant

      public boolean isRedundant()
      Returns true if this transformation is redundant, eg. Scale(1, 1, 1), Translation(0, 0, 0) or Rotation(0, a, b, c)
    • inverse

      public abstract Transformation inverse() throws IrreversibleTransformationException
      Attempts to invert the Transformation.

      The transformations inverse may be itself, or the transform may not have an inverse. In that case a IrreversibleTransformationException is thrown.

      返回:
      The inverse transform.
      抛出:
      IrreversibleTransformationException - If the transform does not have an inverse.
    • $plus$plus

      public Transformation $plus$plus(Transformation t)
      Scala ++ operator