MAKE VECTOR4 This command will create a VECTOR4 data item.
Syntax
    Return Integer=MAKE VECTOR4(Vector)
Parameters
    Vector
Integer vector
Returns
Description
Unlike the datatypes you are used to, these datatypes are stored internally and referenced by an index value. The VECTOR4 datatype contains four float values representing X, Y, Z and W. This datatype is typically used to store transformed and untransformed 3D world space coordinates.
Example Code
    r=MAKE VECTOR4(1)

    r=MAKE VECTOR4(2)

    r=MAKE VECTOR4(3)

    r=MAKE VECTOR4(4)

    SET VECTOR4 1,0,0,0,0

    SET VECTOR4 2,0,0,0,0

    SET VECTOR4 3,0,0,0,0

    SET VECTOR4 4,0,0,0,0

    COPY VECTOR4 1,2

    DIVIDE VECTOR4 1,10

    HERMITE VECTOR4 1,1,2,3,4,0.5

    IF IS EQUAL VECTOR4(1,2)=1

    length#=LENGTH VECTOR4(1)

    LINEAR INTERPOLATE VECTOR4 1,2,3,0.5

    MAXIMIZE VECTOR4 1,2,3

    MINIMIZE VECTOR4 1,2,3

    MULTIPLY VECTOR4 1,100

    NORMALIZE VECTOR4 1,2

    SCALE VECTOR4 1,2,100

    length#=SQUARED LENGTH VECTOR4(1)

    SUBTRACT VECTOR4 1,2,3

    w#=W VECTOR4(1)

    x#=X VECTOR4(1)

    y#=Y VECTOR4(1)

    z#=Z VECTOR4(1)

    ADD VECTOR4 1,2,3

    f#=1 : gb#=1 : BCC VECTOR4 1,2,3,4,f#,gb#

    CATMULLROM VECTOR4 1,1,2,3,4,0.5

    ENDIF

    r=DELETE VECTOR4(1)

    r=DELETE VECTOR4(2)

    r=DELETE VECTOR4(3)

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