ivutils
|
Vector_3
is a class for working with 3-dimensional vectors. Three coordinates x, y and z are set in its constructor. Vectors can be added, subtracted, multiplied by a number, multiplied scalar (using the * operator) and vector (using the % operator).
Example:
Vector_3 v1(1,0,0),v2(0,1,0); Vector_3 v0=v1%v2 - Vector_3(0,0,1); Vector_3 v4(1,2), v5();