TRANSLATE MATRIX4 This command will produce a translation matrix.
Syntax
    TRANSLATE MATRIX4 Matrix4Result, X, Y, Z
Parameters
    Matrix4Result
Integer matrix4result
    X
Float x
    Y
Float y
    Z
Float z
Returns
This command does not return a value.
Example Code
    r=MAKE MATRIX4(1)

    r=MAKE MATRIX4(2)

    r=MAKE MATRIX4(3)

    SET IDENTITY MATRIX4 1

    SET IDENTITY MATRIX4 2

    SET IDENTITY MATRIX4 3

    IF IS IDENTITY MATRIX4(1)=1

    IF IS EQUAL MATRIX4(2,3)=1

    VIEW MATRIX4 1

    WORLD MATRIX4 2

    PROJECTION MATRIX4 3

    TRANSLATE MATRIX4 1,0,50,200

    ROTATE X MATRIX4 1,45

    ROTATE Y MATRIX4 1,45

    ROTATE Z MATRIX4 1,45

    ROTATE YPR MATRIX4 1,45,45,45

    SCALE MATRIX4 1,250,250,250

    TRANSPOSE MATRIX4 1,1

    r=INVERSE MATRIX4(1,1)

    ENDIF

    ENDIF

    COPY MATRIX4 1,2

    ADD MATRIX4 1,2,3

    SUBTRACT MATRIX4 1,2,3

    MULTIPLY MATRIX4 1,2,3

    MULTIPLY MATRIX4 1,100

    DIVIDE MATRIX4 1,100

    r=DELETE MATRIX4(1)

    r=DELETE MATRIX4(2)

    r=DELETE MATRIX4(3)
See also
3DMATHS Commands Menu Index