would this be right?? <:/
Python:
if (lo & 1) != 0: HasPosMatrix = (lo & 2) | 1
else: HasPosMatrix = (lo & 2) | 0C#:
public bool HasPosMatrix {
get { return (_lo & 1) != 0; }
set { _lo = _lo & 2 | (uint)(value ? 1 : 0); }
}
No, use python's @property
@property
def HasPosMatrix(self):
return (_lo & 1) != 0
@property
def hasPosMatrix(self, boolArg):
_lo = .... (translate the C# set)