#include <aigrid.h>
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 |