Declaration: TVector.Add (OtherVec: TVector): integer;
The fuction Add calculates the sum of the two vectors self and Othervec. The result is written back to self. If the dimensions of the two vectors do not match the function returns a value of -1, otherwise a zero value is returned.
Example: The statement Vec1.Add(Vec2); adds the vectors Vec1 and Vec2 and stores the result in Vec1.