ADD VECTOR4 This command will add two vectors together.
Syntax
    ADD VECTOR4 VectorResult, VectorA, VectorB
Parameters
    VectorResult
Integer vectorresult
    VectorA
Integer vectora
    VectorB
Integer vectorb
Returns
This command does not return a value.
Description
This vector is defined as a four float vector.
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