ADD VECTOR2 This command will add two vectors together.
Syntax
    ADD VECTOR2 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 two float vector.
Example Code
    r=MAKE VECTOR2(1)

    r=MAKE VECTOR2(2)

    r=MAKE VECTOR2(3)

    r=MAKE VECTOR2(4)

    SET VECTOR2 1,0,0

    SET VECTOR2 2,0,0

    SET VECTOR2 3,0,0

    SET VECTOR2 4,0,0

    COPY VECTOR2 1,2

    DIVIDE VECTOR2 1,10

    HERMITE VECTOR2 1,1,2,3,4,0.5

    IF IS EQUAL VECTOR2(1,2)=1

    length#=LENGTH VECTOR2(1)

    LINEAR INTERPOLATE VECTOR2 1,2,3,0.5

    MAXIMIZE VECTOR2 1,2,3

    MINIMIZE VECTOR2 1,2,3

    MULTIPLY VECTOR2 1,100

    NORMALIZE VECTOR2 1,2

    SCALE VECTOR2 1,2,100

    length#=SQUARED LENGTH VECTOR2(1)

    SUBTRACT VECTOR2 1,2,3

    x#=X VECTOR2(1)

    y#=Y VECTOR2(1)

    ADD VECTOR2 1,2,3

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

    r=CCW VECTOR2(1,2)

    CATMULLROM VECTOR2 1,1,2,3,4,0.5

    dotproduct#=DOT PRODUCT VECTOR2(1,2)

    ENDIF

    r=DELETE VECTOR2(1)

    r=DELETE VECTOR2(2)

    r=DELETE VECTOR2(3)

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