TVector3(3,0,0) - TVector3(2,0,0)
TypeError: unsupported operand type(s) for -: ‘TVector3’ and ‘TVector3’
TVector3(3,0,0) - TVector3(2,0,0)
TypeError: unsupported operand type(s) for -: ‘TVector3’ and ‘TVector3’
Hi,
yes, global overloads don’t work, but inline ones do. If need be, you can redefine:[code]>>> TVector3.sub = TVector3.isub
print (TVector3(3,0,0) - TVector3(2,0,0))[0]
1.0
[/code]
HTH,
Wim
[quote=“wlav”]Hi,
yes, global overloads don’t work, but inline ones do. If need be, you can redefine:[code]>>> TVector3.sub = TVector3.isub
print (TVector3(3,0,0) - TVector3(2,0,0))[0]
1.0
[/code]
HTH,
Wim[/quote]
I hope that someone fix it in the next releases.
Hi,
time permitting … things are a little odd right now with the experiment starting up. If you want, you can file a bug report on savannah to keep tabs on it.
Thanks,
Wim