Example #1
0
 public void drawBox(btVector3 bbMin, btVector3 bbMax, btTransform trans, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawBox__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(bbMin),
         bbMin,
         btVector3.getCPtr(bbMax),
         bbMax,
         btTransform.getCPtr(trans),
         trans,
         btVector3.getCPtr(color),
         color);
   else
     LinearMathJNI.btIDebugDraw_drawBoxSwigExplicitbtIDebugDraw__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(bbMin),
         bbMin,
         btVector3.getCPtr(bbMax),
         bbMax,
         btTransform.getCPtr(trans),
         trans,
         btVector3.getCPtr(color),
         color);
 }
Example #2
0
 public void drawTriangle(btVector3 v0, btVector3 v1, btVector3 v2, btVector3 color, float arg4) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawTriangle__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(v0),
         v0,
         btVector3.getCPtr(v1),
         v1,
         btVector3.getCPtr(v2),
         v2,
         btVector3.getCPtr(color),
         color,
         arg4);
   else
     LinearMathJNI.btIDebugDraw_drawTriangleSwigExplicitbtIDebugDraw__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(v0),
         v0,
         btVector3.getCPtr(v1),
         v1,
         btVector3.getCPtr(v2),
         v2,
         btVector3.getCPtr(color),
         color,
         arg4);
 }
Example #3
0
 public void drawCone(
     float radius, float height, int upAxis, btTransform transform, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawCone(
         swigCPtr,
         this,
         radius,
         height,
         upAxis,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
   else
     LinearMathJNI.btIDebugDraw_drawConeSwigExplicitbtIDebugDraw(
         swigCPtr,
         this,
         radius,
         height,
         upAxis,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
 }
Example #4
0
 public void drawPlane(
     btVector3 planeNormal, float planeConst, btTransform transform, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawPlane(
         swigCPtr,
         this,
         btVector3.getCPtr(planeNormal),
         planeNormal,
         planeConst,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
   else
     LinearMathJNI.btIDebugDraw_drawPlaneSwigExplicitbtIDebugDraw(
         swigCPtr,
         this,
         btVector3.getCPtr(planeNormal),
         planeNormal,
         planeConst,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
 }
Example #5
0
 public void drawLine(btVector3 from, btVector3 to, btVector3 fromColor, btVector3 toColor) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawLine__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(from),
         from,
         btVector3.getCPtr(to),
         to,
         btVector3.getCPtr(fromColor),
         fromColor,
         btVector3.getCPtr(toColor),
         toColor);
   else
     LinearMathJNI.btIDebugDraw_drawLineSwigExplicitbtIDebugDraw__SWIG_1(
         swigCPtr,
         this,
         btVector3.getCPtr(from),
         from,
         btVector3.getCPtr(to),
         to,
         btVector3.getCPtr(fromColor),
         fromColor,
         btVector3.getCPtr(toColor),
         toColor);
 }
Example #6
0
 public void drawTransform(btTransform transform, float orthoLen) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawTransform(
         swigCPtr, this, btTransform.getCPtr(transform), transform, orthoLen);
   else
     LinearMathJNI.btIDebugDraw_drawTransformSwigExplicitbtIDebugDraw(
         swigCPtr, this, btTransform.getCPtr(transform), transform, orthoLen);
 }
Example #7
0
 public void drawSphere(btVector3 p, float radius, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawSphere__SWIG_1(
         swigCPtr, this, btVector3.getCPtr(p), p, radius, btVector3.getCPtr(color), color);
   else
     LinearMathJNI.btIDebugDraw_drawSphereSwigExplicitbtIDebugDraw__SWIG_1(
         swigCPtr, this, btVector3.getCPtr(p), p, radius, btVector3.getCPtr(color), color);
 }
Example #8
0
 public void drawSpherePatch(
     btVector3 center,
     btVector3 up,
     btVector3 axis,
     float radius,
     float minTh,
     float maxTh,
     float minPs,
     float maxPs,
     btVector3 color,
     float stepDegrees) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawSpherePatch__SWIG_0(
         swigCPtr,
         this,
         btVector3.getCPtr(center),
         center,
         btVector3.getCPtr(up),
         up,
         btVector3.getCPtr(axis),
         axis,
         radius,
         minTh,
         maxTh,
         minPs,
         maxPs,
         btVector3.getCPtr(color),
         color,
         stepDegrees);
   else
     LinearMathJNI.btIDebugDraw_drawSpherePatchSwigExplicitbtIDebugDraw__SWIG_0(
         swigCPtr,
         this,
         btVector3.getCPtr(center),
         center,
         btVector3.getCPtr(up),
         up,
         btVector3.getCPtr(axis),
         axis,
         radius,
         minTh,
         maxTh,
         minPs,
         maxPs,
         btVector3.getCPtr(color),
         color,
         stepDegrees);
 }
Example #9
0
 public void drawArc(
     btVector3 center,
     btVector3 normal,
     btVector3 axis,
     float radiusA,
     float radiusB,
     float minAngle,
     float maxAngle,
     btVector3 color,
     boolean drawSect,
     float stepDegrees) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawArc__SWIG_0(
         swigCPtr,
         this,
         btVector3.getCPtr(center),
         center,
         btVector3.getCPtr(normal),
         normal,
         btVector3.getCPtr(axis),
         axis,
         radiusA,
         radiusB,
         minAngle,
         maxAngle,
         btVector3.getCPtr(color),
         color,
         drawSect,
         stepDegrees);
   else
     LinearMathJNI.btIDebugDraw_drawArcSwigExplicitbtIDebugDraw__SWIG_0(
         swigCPtr,
         this,
         btVector3.getCPtr(center),
         center,
         btVector3.getCPtr(normal),
         normal,
         btVector3.getCPtr(axis),
         axis,
         radiusA,
         radiusB,
         minAngle,
         maxAngle,
         btVector3.getCPtr(color),
         color,
         drawSect,
         stepDegrees);
 }
Example #10
0
 public static float btLargeDot(java.nio.FloatBuffer a, java.nio.FloatBuffer b, int n) {
   assert a.isDirect() : "Buffer must be allocated direct.";
   assert b.isDirect() : "Buffer must be allocated direct.";
   {
     return LinearMathJNI.btLargeDot(a, b, n);
   }
 }
Example #11
0
 public float compute(
     java.nio.DoubleBuffer coords, int stride, int count, float shrink, float shrinkClamp) {
   assert coords.isDirect() : "Buffer must be allocated direct.";
   {
     return LinearMathJNI.btConvexHullComputer_compute__SWIG_1(
         swigCPtr, this, coords, stride, count, shrink, shrinkClamp);
   }
 }
Example #12
0
 public static void GrahamScanConvexHull2D(
     SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t originalPoints,
     SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t hull,
     Vector3 normalAxis) {
   LinearMathJNI.GrahamScanConvexHull2D(
       SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t.getCPtr(originalPoints),
       SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t.getCPtr(hull),
       normalAxis);
 }
Example #13
0
 public static void btTransformAabb(
     Vector3 localAabbMin,
     Vector3 localAabbMax,
     float margin,
     Matrix4 trans,
     Vector3 aabbMinOut,
     Vector3 aabbMaxOut) {
   LinearMathJNI.btTransformAabb__SWIG_1(
       localAabbMin, localAabbMax, margin, trans, aabbMinOut, aabbMaxOut);
 }
Example #14
0
 public static boolean btRayAabb(
     Vector3 rayFrom,
     Vector3 rayTo,
     Vector3 aabbMin,
     Vector3 aabbMax,
     SWIGTYPE_p_float param,
     Vector3 normal) {
   return LinearMathJNI.btRayAabb(
       rayFrom, rayTo, aabbMin, aabbMax, SWIGTYPE_p_float.getCPtr(param), normal);
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btConvexSeparatingDistanceUtil(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #16
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btConvexHullComputer_Edge(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #17
0
 public void drawSphere(float radius, btTransform transform, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawSphere__SWIG_0(
         swigCPtr,
         this,
         radius,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
   else
     LinearMathJNI.btIDebugDraw_drawSphereSwigExplicitbtIDebugDraw__SWIG_0(
         swigCPtr,
         this,
         radius,
         btTransform.getCPtr(transform),
         transform,
         btVector3.getCPtr(color),
         color);
 }
Example #18
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btIDebugDraw(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #19
0
 public void drawLine(btVector3 from, btVector3 to, btVector3 color) {
   LinearMathJNI.btIDebugDraw_drawLine__SWIG_0(
       swigCPtr,
       this,
       btVector3.getCPtr(from),
       from,
       btVector3.getCPtr(to),
       to,
       btVector3.getCPtr(color),
       color);
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       LinearMathJNI.delete_btVector3DoubleData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #21
0
 public void drawAabb(btVector3 from, btVector3 to, btVector3 color) {
   if (getClass() == btIDebugDraw.class)
     LinearMathJNI.btIDebugDraw_drawAabb(
         swigCPtr,
         this,
         btVector3.getCPtr(from),
         from,
         btVector3.getCPtr(to),
         to,
         btVector3.getCPtr(color),
         color);
   else
     LinearMathJNI.btIDebugDraw_drawAabbSwigExplicitbtIDebugDraw(
         swigCPtr,
         this,
         btVector3.getCPtr(from),
         from,
         btVector3.getCPtr(to),
         to,
         btVector3.getCPtr(color),
         color);
 }
Example #22
0
 public void drawContactPoint(
     btVector3 PointOnB, btVector3 normalOnB, float distance, int lifeTime, btVector3 color) {
   LinearMathJNI.btIDebugDraw_drawContactPoint(
       swigCPtr,
       this,
       btVector3.getCPtr(PointOnB),
       PointOnB,
       btVector3.getCPtr(normalOnB),
       normalOnB,
       distance,
       lifeTime,
       btVector3.getCPtr(color),
       color);
 }
Example #23
0
 public static long testQuantizedAabbAgainstQuantizedAabb(
     java.nio.IntBuffer aabbMin1,
     java.nio.IntBuffer aabbMax1,
     java.nio.IntBuffer aabbMin2,
     java.nio.IntBuffer aabbMax2) {
   assert aabbMin1.isDirect() : "Buffer must be allocated direct.";
   assert aabbMax1.isDirect() : "Buffer must be allocated direct.";
   assert aabbMin2.isDirect() : "Buffer must be allocated direct.";
   assert aabbMax2.isDirect() : "Buffer must be allocated direct.";
   {
     return LinearMathJNI.testQuantizedAabbAgainstQuantizedAabb(
         aabbMin1, aabbMax1, aabbMin2, aabbMax2);
   }
 }
Example #24
0
 public static boolean btRayAabb2(
     Vector3 rayFrom,
     Vector3 rayInvDirection,
     long[] raySign,
     btVector3 bounds,
     SWIGTYPE_p_float tmin,
     float lambda_min,
     float lambda_max) {
   return LinearMathJNI.btRayAabb2(
       rayFrom,
       rayInvDirection,
       raySign,
       btVector3.getCPtr(bounds),
       bounds,
       SWIGTYPE_p_float.getCPtr(tmin),
       lambda_min,
       lambda_max);
 }
 public btVector3DoubleData() {
   this(LinearMathJNI.new_btVector3DoubleData(), true);
 }
 public double[] getFloats() {
   return LinearMathJNI.btVector3DoubleData_floats_get(swigCPtr, this);
 }
 public void setFloats(double[] value) {
   LinearMathJNI.btVector3DoubleData_floats_set(swigCPtr, this, value);
 }
Example #28
0
 public static float btAtan2(float x, float y) {
   return LinearMathJNI.btAtan2(x, y);
 }
Example #29
0
 public static float btAtan(float x) {
   return LinearMathJNI.btAtan(x);
 }
Example #30
0
 public static float btAcos(float x) {
   return LinearMathJNI.btAcos(x);
 }