1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package com.badlogic.gdx.physics.bullet;
\r
11 import com.badlogic.gdx.math.Vector3;
\r
12 import com.badlogic.gdx.math.Quaternion;
\r
13 import com.badlogic.gdx.math.Matrix3;
\r
14 import com.badlogic.gdx.math.Matrix4;
\r
16 public class btJacobianEntry extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btJacobianEntry(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btJacobianEntry(long cPtr, boolean cMemoryOwn) {
\r
25 this("btJacobianEntry", cPtr, cMemoryOwn);
\r
30 protected void reset(long cPtr, boolean cMemoryOwn) {
\r
33 super.reset(swigCPtr = cPtr, cMemoryOwn);
\r
36 public static long getCPtr(btJacobianEntry obj) {
\r
37 return (obj == null) ? 0 : obj.swigCPtr;
\r
41 protected void finalize() throws Throwable {
\r
47 @Override protected synchronized void delete() {
\r
48 if (swigCPtr != 0) {
\r
50 swigCMemOwn = false;
\r
51 gdxBulletJNI.delete_btJacobianEntry(swigCPtr);
\r
58 public btJacobianEntry() {
\r
59 this(gdxBulletJNI.new_btJacobianEntry__SWIG_0(), true);
\r
62 public btJacobianEntry(Matrix3 world2A, Matrix3 world2B, Vector3 rel_pos1, Vector3 rel_pos2, Vector3 jointAxis, Vector3 inertiaInvA, float massInvA, Vector3 inertiaInvB, float massInvB) {
\r
63 this(gdxBulletJNI.new_btJacobianEntry__SWIG_1(world2A, world2B, rel_pos1, rel_pos2, jointAxis, inertiaInvA, massInvA, inertiaInvB, massInvB), true);
\r
66 public btJacobianEntry(Vector3 jointAxis, Matrix3 world2A, Matrix3 world2B, Vector3 inertiaInvA, Vector3 inertiaInvB) {
\r
67 this(gdxBulletJNI.new_btJacobianEntry__SWIG_2(jointAxis, world2A, world2B, inertiaInvA, inertiaInvB), true);
\r
70 public btJacobianEntry(Vector3 axisInA, Vector3 axisInB, Vector3 inertiaInvA, Vector3 inertiaInvB) {
\r
71 this(gdxBulletJNI.new_btJacobianEntry__SWIG_3(axisInA, axisInB, inertiaInvA, inertiaInvB), true);
\r
74 public btJacobianEntry(Matrix3 world2A, Vector3 rel_pos1, Vector3 rel_pos2, Vector3 jointAxis, Vector3 inertiaInvA, float massInvA) {
\r
75 this(gdxBulletJNI.new_btJacobianEntry__SWIG_4(world2A, rel_pos1, rel_pos2, jointAxis, inertiaInvA, massInvA), true);
\r
78 public float getDiagonal() {
\r
79 return gdxBulletJNI.btJacobianEntry_getDiagonal(swigCPtr, this);
\r
82 public float getNonDiagonal(btJacobianEntry jacB, float massInvA) {
\r
83 return gdxBulletJNI.btJacobianEntry_getNonDiagonal__SWIG_0(swigCPtr, this, btJacobianEntry.getCPtr(jacB), jacB, massInvA);
\r
86 public float getNonDiagonal(btJacobianEntry jacB, float massInvA, float massInvB) {
\r
87 return gdxBulletJNI.btJacobianEntry_getNonDiagonal__SWIG_1(swigCPtr, this, btJacobianEntry.getCPtr(jacB), jacB, massInvA, massInvB);
\r
90 public float getRelativeVelocity(Vector3 linvelA, Vector3 angvelA, Vector3 linvelB, Vector3 angvelB) {
\r
91 return gdxBulletJNI.btJacobianEntry_getRelativeVelocity(swigCPtr, this, linvelA, angvelA, linvelB, angvelB);
\r
94 public void setLinearJointAxis(btVector3 value) {
\r
95 gdxBulletJNI.btJacobianEntry_linearJointAxis_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
98 public btVector3 getLinearJointAxis() {
\r
99 long cPtr = gdxBulletJNI.btJacobianEntry_linearJointAxis_get(swigCPtr, this);
\r
100 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
103 public void setAJ(btVector3 value) {
\r
104 gdxBulletJNI.btJacobianEntry_aJ_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
107 public btVector3 getAJ() {
\r
108 long cPtr = gdxBulletJNI.btJacobianEntry_aJ_get(swigCPtr, this);
\r
109 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
112 public void setBJ(btVector3 value) {
\r
113 gdxBulletJNI.btJacobianEntry_bJ_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
116 public btVector3 getBJ() {
\r
117 long cPtr = gdxBulletJNI.btJacobianEntry_bJ_get(swigCPtr, this);
\r
118 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
121 public void set0MinvJt(btVector3 value) {
\r
122 gdxBulletJNI.btJacobianEntry_0MinvJt_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
125 public btVector3 get0MinvJt() {
\r
126 long cPtr = gdxBulletJNI.btJacobianEntry_0MinvJt_get(swigCPtr, this);
\r
127 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
130 public void set1MinvJt(btVector3 value) {
\r
131 gdxBulletJNI.btJacobianEntry_1MinvJt_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
134 public btVector3 get1MinvJt() {
\r
135 long cPtr = gdxBulletJNI.btJacobianEntry_1MinvJt_get(swigCPtr, this);
\r
136 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
139 public void setAdiag(float value) {
\r
140 gdxBulletJNI.btJacobianEntry_Adiag_set(swigCPtr, this, value);
\r
143 public float getAdiag() {
\r
144 return gdxBulletJNI.btJacobianEntry_Adiag_get(swigCPtr, this);
\r