• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.collision;
10 
11 import com.badlogic.gdx.physics.bullet.BulletBase;
12 import com.badlogic.gdx.physics.bullet.linearmath.*;
13 import com.badlogic.gdx.math.Vector3;
14 import com.badlogic.gdx.math.Quaternion;
15 import com.badlogic.gdx.math.Matrix3;
16 import com.badlogic.gdx.math.Matrix4;
17 
18 public class ClosestRayResultCallback extends RayResultCallback {
19 	private long swigCPtr;
20 
ClosestRayResultCallback(final String className, long cPtr, boolean cMemoryOwn)21 	protected ClosestRayResultCallback(final String className, long cPtr, boolean cMemoryOwn) {
22 		super(className, CollisionJNI.ClosestRayResultCallback_SWIGUpcast(cPtr), cMemoryOwn);
23 		swigCPtr = cPtr;
24 	}
25 
26 	/** Construct a new ClosestRayResultCallback, normally you should not need this constructor it's intended for low-level usage. */
ClosestRayResultCallback(long cPtr, boolean cMemoryOwn)27 	public ClosestRayResultCallback(long cPtr, boolean cMemoryOwn) {
28 		this("ClosestRayResultCallback", cPtr, cMemoryOwn);
29 		construct();
30 	}
31 
32 	@Override
reset(long cPtr, boolean cMemoryOwn)33 	protected void reset(long cPtr, boolean cMemoryOwn) {
34 		if (!destroyed)
35 			destroy();
36 		super.reset(CollisionJNI.ClosestRayResultCallback_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
37 	}
38 
getCPtr(ClosestRayResultCallback obj)39 	public static long getCPtr(ClosestRayResultCallback obj) {
40 		return (obj == null) ? 0 : obj.swigCPtr;
41 	}
42 
43 	@Override
finalize()44 	protected void finalize() throws Throwable {
45 		if (!destroyed)
46 			destroy();
47 		super.finalize();
48 	}
49 
delete()50   @Override protected synchronized void delete() {
51 		if (swigCPtr != 0) {
52 			if (swigCMemOwn) {
53 				swigCMemOwn = false;
54 				CollisionJNI.delete_ClosestRayResultCallback(swigCPtr);
55 			}
56 			swigCPtr = 0;
57 		}
58 		super.delete();
59 	}
60 
swigDirectorDisconnect()61   protected void swigDirectorDisconnect() {
62     swigCMemOwn = false;
63     delete();
64   }
65 
swigReleaseOwnership()66   public void swigReleaseOwnership() {
67     swigCMemOwn = false;
68     CollisionJNI.ClosestRayResultCallback_change_ownership(this, swigCPtr, false);
69   }
70 
swigTakeOwnership()71   public void swigTakeOwnership() {
72     swigCMemOwn = true;
73     CollisionJNI.ClosestRayResultCallback_change_ownership(this, swigCPtr, true);
74   }
75 
ClosestRayResultCallback(Vector3 rayFromWorld, Vector3 rayToWorld)76   public ClosestRayResultCallback(Vector3 rayFromWorld, Vector3 rayToWorld) {
77     this(CollisionJNI.new_ClosestRayResultCallback(rayFromWorld, rayToWorld), true);
78     CollisionJNI.ClosestRayResultCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
79   }
80 
addSingleResult(LocalRayResult rayResult, boolean normalInWorldSpace)81   public float addSingleResult(LocalRayResult rayResult, boolean normalInWorldSpace) {
82     return (getClass() == ClosestRayResultCallback.class) ? CollisionJNI.ClosestRayResultCallback_addSingleResult(swigCPtr, this, LocalRayResult.getCPtr(rayResult), rayResult, normalInWorldSpace) : CollisionJNI.ClosestRayResultCallback_addSingleResultSwigExplicitClosestRayResultCallback(swigCPtr, this, LocalRayResult.getCPtr(rayResult), rayResult, normalInWorldSpace);
83   }
84 
getRayFromWorld(Vector3 out)85   public void getRayFromWorld(Vector3 out) {
86     CollisionJNI.ClosestRayResultCallback_getRayFromWorld(swigCPtr, this, out);
87   }
88 
setRayFromWorld(Vector3 value)89   public void setRayFromWorld(Vector3 value) {
90     CollisionJNI.ClosestRayResultCallback_setRayFromWorld(swigCPtr, this, value);
91   }
92 
getRayToWorld(Vector3 out)93   public void getRayToWorld(Vector3 out) {
94     CollisionJNI.ClosestRayResultCallback_getRayToWorld(swigCPtr, this, out);
95   }
96 
setRayToWorld(Vector3 value)97   public void setRayToWorld(Vector3 value) {
98     CollisionJNI.ClosestRayResultCallback_setRayToWorld(swigCPtr, this, value);
99   }
100 
getHitNormalWorld(Vector3 out)101   public void getHitNormalWorld(Vector3 out) {
102     CollisionJNI.ClosestRayResultCallback_getHitNormalWorld(swigCPtr, this, out);
103   }
104 
setHitNormalWorld(Vector3 value)105   public void setHitNormalWorld(Vector3 value) {
106     CollisionJNI.ClosestRayResultCallback_setHitNormalWorld(swigCPtr, this, value);
107   }
108 
getHitPointWorld(Vector3 out)109   public void getHitPointWorld(Vector3 out) {
110     CollisionJNI.ClosestRayResultCallback_getHitPointWorld(swigCPtr, this, out);
111   }
112 
setHitPointWorld(Vector3 value)113   public void setHitPointWorld(Vector3 value) {
114     CollisionJNI.ClosestRayResultCallback_setHitPointWorld(swigCPtr, this, value);
115   }
116 
117 }
118