Add VECTOR2I_EXTENDED_TYPE template spec to swig
Allows access to Dot(), Cross() and other vector2i methods in python Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9967
This commit is contained in:
parent
b93a3a57d7
commit
84ad38fd5d
|
@ -40,6 +40,7 @@
|
||||||
%include <math/box2.h>
|
%include <math/box2.h>
|
||||||
|
|
||||||
%template(VECTOR2I) VECTOR2<int>;
|
%template(VECTOR2I) VECTOR2<int>;
|
||||||
|
%template(VECTOR2I_EXTENDED_TYPE) VECTOR2_TRAITS<int>;
|
||||||
%template(BOX2I) BOX2<VECTOR2I>;
|
%template(BOX2I) BOX2<VECTOR2I>;
|
||||||
|
|
||||||
%extend VECTOR2<int>
|
%extend VECTOR2<int>
|
||||||
|
|
Loading…
Reference in New Issue