• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef GDX_MATHTYPES_H
2 #define GDX_MATHTYPES_H
3 
4 #include <jni.h>
5 #include <gdx/common/jniHelpers.h>
6 #include <LinearMath/btVector3.h>
7 #include <LinearMath/btQuaternion.h>
8 #include <LinearMath/btMatrix3x3.h>
9 #include <LinearMath/btTransform.h>
10 
11 void Vector3_to_btVector3(JNIEnv * const &jenv, btVector3 &target, jobject &source);
12 void btVector3_to_Vector3(JNIEnv * const &jenv, jobject &target, const btVector3 &source);
13 
14 void Quaternion_to_btQuaternion(JNIEnv * const &jenv, btQuaternion &target, jobject &source);
15 void btQuaternion_to_Quaternion(JNIEnv * const &jenv, jobject &target, const btQuaternion & source);
16 
17 void Matrix3_to_btMatrix3(JNIEnv * const &jenv, btMatrix3x3 &target, jobject &source);
18 void btMatrix3_to_Matrix3(JNIEnv * const &jenv, jobject &target, const btMatrix3x3 &source);
19 
20 void Matrix4_to_btTransform(JNIEnv * const &jenv, btTransform &target, jobject &source);
21 void btTransform_to_Matrix4(JNIEnv * const &jenv, jobject &target, const btTransform &source);
22 
23 #endif //GDX_MATHTYPES_H