public static Vector2 operator *(Vector2 vector, double factor) { var v = new Vector2(vector); v.Mul(factor); return v; }
public static Vector2 operator -(Vector2 vector) { var v = new Vector2(vector); v.Neg(); return v; }
Vector2(Vector2 vector) : this(vector.X, vector.Y) { }
public Vector2 Sub(Vector2 vector) { gimp_vector2_sub(ref _vector, ref _vector, ref vector._vector); return this; }
public double InnerProduct(Vector2 vector) { return gimp_vector2_inner_product(ref _vector, ref vector._vector); }
public double CrossProduct(Vector2 vector) { return gimp_vector2_cross_product(ref _vector, ref vector._vector); }
public Vector2 Add(Vector2 vector) { gimp_vector2_add(ref _vector, ref _vector, ref vector._vector); return this; }