OSDN Git Service

swig generated java files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btBox2dShape.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.10\r
4  *\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
8 \r
9 package com.badlogic.gdx.physics.bullet;\r
10 \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
15 \r
16 public class btBox2dShape extends btPolyhedralConvexShape {\r
17         private long swigCPtr;\r
18         \r
19         protected btBox2dShape(final String className, long cPtr, boolean cMemoryOwn) {\r
20                 super(className, gdxBulletJNI.btBox2dShape_SWIGUpcast(cPtr), cMemoryOwn);\r
21                 swigCPtr = cPtr;\r
22         }\r
23         \r
24         protected btBox2dShape(long cPtr, boolean cMemoryOwn) {\r
25                 this("btBox2dShape", cPtr, cMemoryOwn);\r
26                 construct();\r
27         }\r
28         \r
29         @Override\r
30         protected void reset(long cPtr, boolean cMemoryOwn) {\r
31                 if (!destroyed)\r
32                         destroy();\r
33                 super.reset(gdxBulletJNI.btBox2dShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);\r
34         }\r
35         \r
36         public static long getCPtr(btBox2dShape obj) {\r
37                 return (obj == null) ? 0 : obj.swigCPtr;\r
38         }\r
39 \r
40         @Override\r
41         protected void finalize() throws Throwable {\r
42                 if (!destroyed)\r
43                         destroy();\r
44                 super.finalize();\r
45         }\r
46 \r
47   @Override protected synchronized void delete() {\r
48                 if (swigCPtr != 0) {\r
49                         if (swigCMemOwn) {\r
50                                 swigCMemOwn = false;\r
51                                 gdxBulletJNI.delete_btBox2dShape(swigCPtr);\r
52                         }\r
53                         swigCPtr = 0;\r
54                 }\r
55                 super.delete();\r
56         }\r
57 \r
58   public Vector3 getHalfExtentsWithMargin() {\r
59         return gdxBulletJNI.btBox2dShape_getHalfExtentsWithMargin(swigCPtr, this);\r
60 }\r
61 \r
62   public Vector3 getHalfExtentsWithoutMargin() {\r
63         return gdxBulletJNI.btBox2dShape_getHalfExtentsWithoutMargin(swigCPtr, this);\r
64 }\r
65 \r
66   public btBox2dShape(Vector3 boxHalfExtents) {\r
67     this(gdxBulletJNI.new_btBox2dShape(boxHalfExtents), true);\r
68   }\r
69 \r
70   public int getVertexCount() {\r
71     return gdxBulletJNI.btBox2dShape_getVertexCount(swigCPtr, this);\r
72   }\r
73 \r
74   public btVector3 getVertices() {\r
75     long cPtr = gdxBulletJNI.btBox2dShape_getVertices(swigCPtr, this);\r
76     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
77   }\r
78 \r
79   public btVector3 getNormals() {\r
80     long cPtr = gdxBulletJNI.btBox2dShape_getNormals(swigCPtr, this);\r
81     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
82   }\r
83 \r
84   public Vector3 getCentroid() {\r
85         return gdxBulletJNI.btBox2dShape_getCentroid(swigCPtr, this);\r
86 }\r
87 \r
88   public void getPlaneEquation(btVector4 plane, int i) {\r
89     gdxBulletJNI.btBox2dShape_getPlaneEquation(swigCPtr, this, btVector4.getCPtr(plane), plane, i);\r
90   }\r
91 \r
92 }\r