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:
qu1ck 2022-12-26 09:54:04 -08:00 committed by Mark Roszko
parent b93a3a57d7
commit 84ad38fd5d
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@
%include <math/box2.h>
%template(VECTOR2I) VECTOR2<int>;
%template(VECTOR2I_EXTENDED_TYPE) VECTOR2_TRAITS<int>;
%template(BOX2I) BOX2<VECTOR2I>;
%extend VECTOR2<int>