Sums two vectors

Namespace:  Cloudster.Samples.VectorND
Assembly:  Cloudster.Samples.VectorND.Role (in Cloudster.Samples.VectorND.Role.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static VectorNDEntity operator +(
	VectorNDEntity vector1,
	VectorNDEntity vector2
)
Visual Basic (Declaration)
Public Shared Operator + ( _
	vector1 As VectorNDEntity, _
	vector2 As VectorNDEntity _
) As VectorNDEntity
Visual C++
public:
static VectorNDEntity^ operator +(
	VectorNDEntity^ vector1, 
	VectorNDEntity^ vector2
)

Parameters

vector1
Type: Cloudster.Samples.VectorND..::.VectorNDEntity
First vector
vector2
Type: Cloudster.Samples.VectorND..::.VectorNDEntity
Second vector

Return Value

A new vector, sum of the two parameter vectors. Raises ArgumentException if the vectors haven't the same number of coordinates

See Also