1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.0.8 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package com.badlogic.gdx.physics.bullet.linearmath; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.math.Vector3; 13 import com.badlogic.gdx.math.Quaternion; 14 import com.badlogic.gdx.math.Matrix3; 15 import com.badlogic.gdx.math.Matrix4; 16 17 public class btTransform extends BulletBase { 18 private long swigCPtr; 19 btTransform(final String className, long cPtr, boolean cMemoryOwn)20 protected btTransform(final String className, long cPtr, boolean cMemoryOwn) { 21 super(className, cPtr, cMemoryOwn); 22 swigCPtr = cPtr; 23 } 24 25 /** Construct a new btTransform, normally you should not need this constructor it's intended for low-level usage. */ btTransform(long cPtr, boolean cMemoryOwn)26 public btTransform(long cPtr, boolean cMemoryOwn) { 27 this("btTransform", cPtr, cMemoryOwn); 28 construct(); 29 } 30 31 @Override reset(long cPtr, boolean cMemoryOwn)32 protected void reset(long cPtr, boolean cMemoryOwn) { 33 if (!destroyed) 34 destroy(); 35 super.reset(swigCPtr = cPtr, cMemoryOwn); 36 } 37 getCPtr(btTransform obj)38 public static long getCPtr(btTransform obj) { 39 return (obj == null) ? 0 : obj.swigCPtr; 40 } 41 42 @Override finalize()43 protected void finalize() throws Throwable { 44 if (!destroyed) 45 destroy(); 46 super.finalize(); 47 } 48 delete()49 @Override protected synchronized void delete() { 50 if (swigCPtr != 0) { 51 if (swigCMemOwn) { 52 swigCMemOwn = false; 53 LinearMathJNI.delete_btTransform(swigCPtr); 54 } 55 swigCPtr = 0; 56 } 57 super.delete(); 58 } 59 btTransform()60 public btTransform() { 61 this(LinearMathJNI.new_btTransform__SWIG_0(), true); 62 } 63 btTransform(Quaternion q, Vector3 c)64 public btTransform(Quaternion q, Vector3 c) { 65 this(LinearMathJNI.new_btTransform__SWIG_1(q, c), true); 66 } 67 btTransform(Quaternion q)68 public btTransform(Quaternion q) { 69 this(LinearMathJNI.new_btTransform__SWIG_2(q), true); 70 } 71 btTransform(Matrix3 b, Vector3 c)72 public btTransform(Matrix3 b, Vector3 c) { 73 this(LinearMathJNI.new_btTransform__SWIG_3(b, c), true); 74 } 75 btTransform(Matrix3 b)76 public btTransform(Matrix3 b) { 77 this(LinearMathJNI.new_btTransform__SWIG_4(b), true); 78 } 79 btTransform(Matrix4 other)80 public btTransform(Matrix4 other) { 81 this(LinearMathJNI.new_btTransform__SWIG_5(other), true); 82 } 83 mult(Matrix4 t1, Matrix4 t2)84 public void mult(Matrix4 t1, Matrix4 t2) { 85 LinearMathJNI.btTransform_mult(swigCPtr, this, t1, t2); 86 } 87 getBasis()88 public Matrix3 getBasis() { 89 return LinearMathJNI.btTransform_getBasis__SWIG_0(swigCPtr, this); 90 } 91 getOrigin()92 public Vector3 getOrigin() { 93 return LinearMathJNI.btTransform_getOrigin__SWIG_0(swigCPtr, this); 94 } 95 getRotation()96 public Quaternion getRotation() { 97 return LinearMathJNI.btTransform_getRotation(swigCPtr, this); 98 } 99 setFromOpenGLMatrix(float[] m)100 public void setFromOpenGLMatrix(float[] m) { 101 LinearMathJNI.btTransform_setFromOpenGLMatrix(swigCPtr, this, m); 102 } 103 getOpenGLMatrix(float[] m)104 public void getOpenGLMatrix(float[] m) { 105 LinearMathJNI.btTransform_getOpenGLMatrix(swigCPtr, this, m); 106 } 107 setOrigin(Vector3 origin)108 public void setOrigin(Vector3 origin) { 109 LinearMathJNI.btTransform_setOrigin(swigCPtr, this, origin); 110 } 111 invXform(Vector3 inVec)112 public Vector3 invXform(Vector3 inVec) { 113 return LinearMathJNI.btTransform_invXform(swigCPtr, this, inVec); 114 } 115 setBasis(Matrix3 basis)116 public void setBasis(Matrix3 basis) { 117 LinearMathJNI.btTransform_setBasis(swigCPtr, this, basis); 118 } 119 setRotation(Quaternion q)120 public void setRotation(Quaternion q) { 121 LinearMathJNI.btTransform_setRotation(swigCPtr, this, q); 122 } 123 setIdentity()124 public void setIdentity() { 125 LinearMathJNI.btTransform_setIdentity(swigCPtr, this); 126 } 127 inverse()128 public Matrix4 inverse() { 129 return LinearMathJNI.btTransform_inverse(swigCPtr, this); 130 } 131 inverseTimes(Matrix4 t)132 public Matrix4 inverseTimes(Matrix4 t) { 133 return LinearMathJNI.btTransform_inverseTimes(swigCPtr, this, t); 134 } 135 getIdentity()136 public static Matrix4 getIdentity() { 137 return LinearMathJNI.btTransform_getIdentity(); 138 } 139 serialize(btTransformFloatData dataOut)140 public void serialize(btTransformFloatData dataOut) { 141 LinearMathJNI.btTransform_serialize(swigCPtr, this, btTransformFloatData.getCPtr(dataOut), dataOut); 142 } 143 serializeFloat(btTransformFloatData dataOut)144 public void serializeFloat(btTransformFloatData dataOut) { 145 LinearMathJNI.btTransform_serializeFloat(swigCPtr, this, btTransformFloatData.getCPtr(dataOut), dataOut); 146 } 147 deSerialize(btTransformFloatData dataIn)148 public void deSerialize(btTransformFloatData dataIn) { 149 LinearMathJNI.btTransform_deSerialize(swigCPtr, this, btTransformFloatData.getCPtr(dataIn), dataIn); 150 } 151 deSerializeDouble(btTransformDoubleData dataIn)152 public void deSerializeDouble(btTransformDoubleData dataIn) { 153 LinearMathJNI.btTransform_deSerializeDouble(swigCPtr, this, btTransformDoubleData.getCPtr(dataIn), dataIn); 154 } 155 deSerializeFloat(btTransformFloatData dataIn)156 public void deSerializeFloat(btTransformFloatData dataIn) { 157 LinearMathJNI.btTransform_deSerializeFloat(swigCPtr, this, btTransformFloatData.getCPtr(dataIn), dataIn); 158 } 159 160 } 161