public static Inctor2 operator *(Inctor2 lhs, int rhs) { Inctor2 result = new Inctor2(); result.x = lhs.x * rhs; result.y = lhs.y * rhs; return(result); }
public static Inctor2 operator -(Inctor2 lhs, Inctor2 rhs) { Inctor2 result = new Inctor2(); result.x = lhs.x - rhs.x; result.y = lhs.y - rhs.y; return(result); }