No * operator on TVector3 etc.?

I’m having to use this:

def TVector3_mul(self, operand):
ret = ROOT.TVector3(self)
ret *= operand
return ret

ROOT.TVector3.mul = TVector3_mul
ROOT.TVector3.rmul = TVector3_mul # Yes I know this is wrong for non-scalars :stuck_out_tongue:

So that I can do a * V and V * a. This is surely bad for performance, though…


yes, this is an old and known issue (see this topic: to which I do not have a solution (yet).