• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *	Extra Java methods.
3  */
4 
5 %module btTransform
6 
7 %include "../common/gdxDisableBuffers.i"
8 %include "../common/gdxEnableArrays.i"
9 
10 %{
11 #include <LinearMath/btTransform.h>
12 %}
13 %include "LinearMath/btTransform.h"
14 
15 %typemap(javacode) btTransform %{
16 
17   /**
18    * Sets the values in this transform from the other.
19    */
set(btTransform other)20   public void set(btTransform other) {
21   	setOrigin(other.getOrigin());
22     setBasis(other.getBasis());
23   }
24 
25   @Override
toString()26   public String toString() {
27     return getOrigin() + "\n" + getBasis();
28   }
29 %}
30 %include "../common/gdxDisableArrays.i"
31 %include "../common/gdxEnableBuffers.i"