Home | History | Annotate | Download | only in linearmath
      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 btVector3DoubleData extends BulletBase {
     18 	private long swigCPtr;
     19 
     20 	protected btVector3DoubleData(final String className, long cPtr, boolean cMemoryOwn) {
     21 		super(className, cPtr, cMemoryOwn);
     22 		swigCPtr = cPtr;
     23 	}
     24 
     25 	/** Construct a new btVector3DoubleData, normally you should not need this constructor it's intended for low-level usage. */
     26 	public btVector3DoubleData(long cPtr, boolean cMemoryOwn) {
     27 		this("btVector3DoubleData", cPtr, cMemoryOwn);
     28 		construct();
     29 	}
     30 
     31 	@Override
     32 	protected void reset(long cPtr, boolean cMemoryOwn) {
     33 		if (!destroyed)
     34 			destroy();
     35 		super.reset(swigCPtr = cPtr, cMemoryOwn);
     36 	}
     37 
     38 	public static long getCPtr(btVector3DoubleData obj) {
     39 		return (obj == null) ? 0 : obj.swigCPtr;
     40 	}
     41 
     42 	@Override
     43 	protected void finalize() throws Throwable {
     44 		if (!destroyed)
     45 			destroy();
     46 		super.finalize();
     47 	}
     48 
     49   @Override protected synchronized void delete() {
     50 		if (swigCPtr != 0) {
     51 			if (swigCMemOwn) {
     52 				swigCMemOwn = false;
     53 				LinearMathJNI.delete_btVector3DoubleData(swigCPtr);
     54 			}
     55 			swigCPtr = 0;
     56 		}
     57 		super.delete();
     58 	}
     59 
     60   public void setFloats(double[] value) {
     61     LinearMathJNI.btVector3DoubleData_floats_set(swigCPtr, this, value);
     62   }
     63 
     64   public double[] getFloats() {
     65     return LinearMathJNI.btVector3DoubleData_floats_get(swigCPtr, this);
     66   }
     67 
     68   public btVector3DoubleData() {
     69     this(LinearMathJNI.new_btVector3DoubleData(), true);
     70   }
     71 
     72 }
     73