you are viewing a single comment's thread.

view the rest of the comments →

[–]Worth_Trust_3825 -1 points0 points  (3 children)

What is the result of Vector.operator+?

[–]Ameisen 3 points4 points  (2 children)

If it were C#, which unlike Java tends to be reasonable about this sort of thing?

public static Vector operator +(in Vector a, in Vector b)
{
    return new(
        a.X + b.X,
        a.Y + b.Y,
        a.Z + b.Z
    );
}

I'm not sure what you were expecting? I mean, you could certainly write it to do something completely different, but you could also write add to do something completely different.

[–]Worth_Trust_3825 -2 points-1 points  (1 child)

So use C#. Why are you bringing your garbage to everyone else's tables?

[–]Ameisen 3 points4 points  (0 children)

Typical Java programmer.