Public Member Functions | |
| Vec2D (double x, double y) | |
| constructor by x and y | |
| void | operator= (const Vec2D &vec2D) |
| assignment e.g. vec1 = vec2; | |
| double | operator * (const Vec2D &vec2D) const |
| arithmetic scalar product, e.g. val = vec1 * vec2; | |
| const Vec2D & | operator * (double val) const |
| arithmetic vector multiplication, e.g. vec1 = val * vec2 (also working: vec1 = vec2 * val; ) | |
| const Vec2D & | operator+ (const Vec2D &vec2D) const |
| arithmetic addition, e.g. vec1 = vec2 + vec3; | |
| const Vec2D & | operator- (const Vec2D &vec2D) const |
| arithmetic subtraction, e.g. vec1 = vec2 - vec3; | |
|
||||||||||||
|
constructor by x and y
|
|
|
assignment e.g. vec1 = vec2;
|
|
|
arithmetic scalar product, e.g. val = vec1 * vec2;
|
|
|
arithmetic vector multiplication, e.g. vec1 = val * vec2 (also working: vec1 = vec2 * val; )
|
|
|
arithmetic addition, e.g. vec1 = vec2 + vec3;
|
|
|
arithmetic subtraction, e.g. vec1 = vec2 - vec3;
|
1.4.6-NO