Interface Transform

Interface used to perform transformation on the specified render object.

interface Transform {
    clear(): Render.Transform;
    lock(): Render.Transform;
    matrix(m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number): Render.Transform;
    rotate(rotX: number, rotY: number, rotZ: number): Render.Transform;
    scale(scaleX: number, scaleY: number, scaleZ: number): Render.Transform;
    scaleLegacy(scale: number): Render.Transform;
    translate(x: number, y: number, z: number): Render.Transform;
    unlock(): Render.Transform;
}

Methods

  • Performs arbitrary matrix transformations on the render.

    Parameters

    • m00: number
    • m01: number
    • m02: number
    • m03: number
    • m10: number
    • m11: number
    • m12: number
    • m13: number
    • m20: number
    • m21: number
    • m22: number
    • m23: number
    • m30: number
    • m31: number
    • m32: number
    • m33: number

    Returns Render.Transform

    Reference to itself to be used in sequential calls.

  • Scales render along the three axes.

    Parameters

    • scaleX: number
    • scaleY: number
    • scaleZ: number

    Returns Render.Transform

    Reference to itself to be used in sequential calls.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.