sub

Method:

sub - vector subtraction

Syntax:

v3 = v.sub(v2);

Parameters:

v2 - vector to be subracted from the given object

Returns:

vector - the result of the subtraction

Description:

Returns a new vector containing the result of vector operation 'v - v2'.

Example:

v = new r3Vect(1, 1, 1);