add

Method:

add - addition

Syntax:

v2 = v.add(v1);

Parameters:

v1 - vector

Returns:

v2 = result vector

Description:

This adds the given vector to the object in question and returns the result as a new vector. The operation doesn't change the attributes of the object.

Example:

v = new r3Vect(0.1, 0, 0);