r3Vect

Method:

r3Vect, r3Vect4 - constructor for 3d and 4d vectors

Syntax:

v = new r3Vect()

Parameters:

x, y, z, w - floating point numbers

Returns:

v - new vector object

Description:

Creates a new vector object. If you don't pass any parameters to the constructor, a null vector is created i.e. all the vector attributes are initialized to zero.

Example:

v = new r3Vect();