MAKE VECTOR2 This command will create a VECTOR2 data item.
Syntax
    Return Integer=MAKE VECTOR2(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 VECTOR2 datatype contains two float values representing X and Y. This datatype is typically used to store screen based coordinates.
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