Hide std::abs for EDA_ANGLE from Python.
This commit is contained in:
parent
9bba8e5956
commit
b2a0d85c84
|
@ -1,4 +1,5 @@
|
||||||
%ignore EDA_SHAPE::getCenter;
|
%ignore EDA_SHAPE::getCenter;
|
||||||
|
%ignore std::abs;
|
||||||
#pragma SWIG nowarn=503
|
#pragma SWIG nowarn=503
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
@ -33,6 +34,9 @@
|
||||||
|
|
||||||
def __truediv__(self, other):
|
def __truediv__(self, other):
|
||||||
return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
|
return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
|
||||||
|
|
||||||
|
def __abs__(self):
|
||||||
|
return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
|
||||||
%}
|
%}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue