类 Transformation

所有已实现的接口:
IVertexOperation, Copyable<Transformation>
直接已知子类:
Matrix4, RedundantTransformation, Rotation, Scale, TransformationList, Translation, VariableTransformation

public abstract class Transformation extends ITransformation<Vector3,Transformation> implements IVertexOperation
Abstract supertype for any 3D vector transformation
  • 字段详细资料

    • operationIndex

      public static final int operationIndex
  • 构造器详细资料

    • Transformation

      public Transformation()
  • 方法详细资料

    • applyN

      public abstract void applyN(Vector3 normal)
      Applies this transformation to a normal (doesn't translate)
      参数:
      normal - The normal to transform
    • apply

      public abstract void apply(Matrix4 mat)
      Applies this transformation to a matrix as a multiplication on the right hand side.
      参数:
      mat - The matrix to combine this transformation with
    • at

      public Transformation at(Vector3 point)
      指定者:
      at 在类中 ITransformation<Vector3,Transformation>
      参数:
      point - The point to apply this transformation around
      返回:
      Wraps this transformation in a translation to point and then back from point
    • with

      从类复制的说明: ITransformation
      Creates a TransformationList composed of this transformation followed by t If this is a TransformationList, the transformation will be appended and this returned
      指定者:
      with 在类中 ITransformation<Vector3,Transformation>
    • load

      public boolean load(CCRenderState ccrs)
      从接口复制的说明: IVertexOperation
      Load any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given model
      指定者:
      load 在接口中 IVertexOperation
    • operate

      public void operate(CCRenderState ccrs)
      从接口复制的说明: IVertexOperation
      Perform the operation on the current render state
      指定者:
      operate 在接口中 IVertexOperation
    • operationID

      public int operationID()
      从接口复制的说明: IVertexOperation
      Get the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable
      指定者:
      operationID 在接口中 IVertexOperation