There is a standard[0] you are ignoring either intentionally or out of ignorance. It is okay that you are used to Bash but please stop spreading false information about PowerShell.
[0] https://learn.microsoft.com/en-us/powershell/scripting/devel...
16 karma · joined June 16, 2022
[0] https://learn.microsoft.com/en-us/powershell/scripting/devel...
If they pile on after you have conceded, typically they come off much worse socially in my opinion.
public static Vector operator -(Vector a, Vector b)
{
Vector v = new Vector();
v.X = a.X - b.X;
v.Y = a.Y - b.Y;
return v;
}
So then you can just write: Vector result = myVector1 - myVector2;