buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void run () { Runtime.getRuntime().halt(0); // Because fuck you, deadlock causing Swing shutdown hooks. } }); setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().setPreferredSize(new Dimension(width, height)); initialize(); Dimension size = getSize(); if (size.width == 0 && size.heig...
public void run () { Runtime.getRuntime().halt(0); // Because fuck you, deadlock causing Swing shutdown hooks. } }); setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().setPreferredSize(new Dimension(width, height)); initialize(); Dimension size = getSize(); if (size.width == 0 && size.heig...
public boolean removeAll (BooleanArray array) { int size = this.size; int startSize = size; boolean[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { boolean item = array.get(i); for (int ii = 0, nn = size; ii < nn; ii++) { if (item == items[ii]) { removeIndex(ii); size--;...
public boolean removeAll (BooleanArray array) { int size = this.size; int startSize = size; boolean[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { boolean item = array.get(i); for (int ii = 0; ii < size; ii++) { if (item == items[ii]) { removeIndex(ii); size--; bre...
public boolean removeAll (CharArray array) { int size = this.size; int startSize = size; char[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { char item = array.get(i); for (int ii = 0, nn = size; ii < nn; ii++) { if (item == items[ii]) { removeIndex(ii); size--; bre...
public boolean removeAll (CharArray array) { int size = this.size; int startSize = size; char[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { char item = array.get(i); for (int ii = 0; ii < size; ii++) { if (item == items[ii]) { removeIndex(ii); size--; break; }...
public boolean removeAll (FloatArray array) { int size = this.size; int startSize = size; float[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { float item = array.get(i); for (int ii = 0, nn = size; ii < nn; ii++) { if (item == items[ii]) { removeIndex(ii); size--; ...
public boolean removeAll (FloatArray array) { int size = this.size; int startSize = size; float[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { float item = array.get(i); for (int ii = 0; ii < size; ii++) { if (item == items[ii]) { removeIndex(ii); size--; break; ...
public boolean removeAll (IntArray array) { int size = this.size; int startSize = size; int[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { int item = array.get(i); for (int ii = 0, nn = size; ii < nn; ii++) { if (item == items[ii]) { removeIndex(ii); size--; break;...
public boolean removeAll (IntArray array) { int size = this.size; int startSize = size; int[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { int item = array.get(i); for (int ii = 0; ii < size; ii++) { if (item == items[ii]) { removeIndex(ii); size--; break; } ...
public boolean removeAll (LongArray array) { int size = this.size; int startSize = size; long[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { long item = array.get(i); for (int ii = 0, nn = size; ii < nn; ii++) { if (item == items[ii]) { removeIndex(ii); size--; bre...
public boolean removeAll (LongArray array) { int size = this.size; int startSize = size; long[] items = this.items; for (int i = 0, n = array.size; i < n; i++) { long item = array.get(i); for (int ii = 0; ii < size; ii++) { if (item == items[ii]) { removeIndex(ii); size--; break; }...
public void render () { GL20 gl = Gdx.graphics.getGL20(); gl.glClearColor(0.7f, 0.7f, 0.7f, 1); gl.glClear(GL20.GL_COLOR_BUFFER_BIT); if (wait > 0) wait -= Gdx.graphics.getDeltaTime(); else { t += speed * Gdx.graphics.getDeltaTime(); zt += zspeed * Gdx.graphics.getDeltaTime(); while (t >= 1f) { ...
public void render () { GL20 gl = Gdx.gl20; gl.glClearColor(0.7f, 0.7f, 0.7f, 1); gl.glClear(GL20.GL_COLOR_BUFFER_BIT); if (wait > 0) wait -= Gdx.graphics.getDeltaTime(); else { t += speed * Gdx.graphics.getDeltaTime(); zt += zspeed * Gdx.graphics.getDeltaTime(); while (t >= 1f) { currentPat...
public void render () { GL20 gl = Gdx.graphics.getGL20(); gl.glClearColor(0.7f, 0.7f, 0.7f, 1); gl.glClear(GL20.GL_COLOR_BUFFER_BIT); float begin = 0; float end = 0; float draw1 = 0; float draw2 = 0; float drawText = 0; long start = TimeUtils.nanoTime(); spriteBatch.begin(); begin = (TimeUtils....
public void render () { GL20 gl = Gdx.gl20; gl.glClearColor(0.7f, 0.7f, 0.7f, 1); gl.glClear(GL20.GL_COLOR_BUFFER_BIT); float begin = 0; float end = 0; float draw1 = 0; float draw2 = 0; float drawText = 0; long start = TimeUtils.nanoTime(); spriteBatch.begin(); begin = (TimeUtils.nanoTime() - s...
public BoundingBox extendBoundingBox (final BoundingBox out, int offset, int count, final Matrix4 transform) { int numIndices = getNumIndices(); if (offset < 0 || count < 1 || offset + count > numIndices) throw new GdxRuntimeException("Not enough indices"); final FloatBuffer verts = vertices.getBuffer(); fina...
public BoundingBox extendBoundingBox (final BoundingBox out, int offset, int count, final Matrix4 transform) { int numIndices = getNumIndices(); if (offset < 0 || count < 1 || offset + count > numIndices) throw new GdxRuntimeException("Not enough indices ( offset="+offset+", count="+count+", max="+numIndices+" )")...
public void explainValidateQuery() throws Exception { client().admin().indices().prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet(); client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGre...
public void explainValidateQuery() throws Exception { client().admin().indices().prepareCreate("test").setSettings(ImmutableSettings.settingsBuilder().put("index.number_of_shards", 1)).execute().actionGet(); client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGre...
public void touchMoved(NSSet touches, UIEvent event) { toTouchEvents(touches, event); } void processEvents() { synchronized(touchEvents) { justTouched = false; for(TouchEvent event: touchEvents) { currentEvent = event; switch(event.phase) { case UITouchPhase.Began: if(inputProcessor != n...
public void touchMoved(NSSet touches, UIEvent event) { toTouchEvents(touches, event); } void processEvents() { synchronized(touchEvents) { justTouched = false; for(TouchEvent event: touchEvents) { currentEvent = event; switch(event.phase) { case UITouchPhase.Began: if(inputProcessor != n...
public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); cam.update(); cam.apply(Gdx.gl10); drawAxes(); if (hasNormals) { Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10....
public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); cam.update(); cam.apply(Gdx.gl10); drawAxes(); if (hasNormals) { Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10....
public PooledEffect obtain () { PooledEffect effect = super.obtain(); effect.start(); return effect; }
public PooledEffect obtain () { PooledEffect effect = super.obtain(); effect.reset(); return effect; }
protected void clear () { groupList.clear(); groupPool.free(usedGroups); usedGroups.clear(); }
protected void clear () { groupList.clear(); groupPool.freeAll(usedGroups); usedGroups.clear(); }
public abstract void forEachValueInDoc(int docId, StringValueInDocProc proc); public static interface StringValueInDocProc { void onValue(String value, int docId); }
public abstract void forEachValueInDoc(int docId, StringValueInDocProc proc); public static interface StringValueInDocProc { void onValue(int docId, String value); }
@Override public void forEachValueInDoc(int docId, StringValueInDocProc proc) { int[] docOrders = order[docId]; if (docOrders == null) { return; } for (int docOrder : docOrders) { proc.onValue(values[docOrder], docId); } }
@Override public void forEachValueInDoc(int docId, StringValueInDocProc proc) { int[] docOrders = order[docId]; if (docOrders == null) { return; } for (int docOrder : docOrders) { proc.onValue(docId, values[docOrder]); } }
@Override public void forEachValueInDoc(int docId, StringValueInDocProc proc) { int loc = order[docId]; if (loc == 0) { return; } proc.onValue(values[loc], docId); }
@Override public void forEachValueInDoc(int docId, StringValueInDocProc proc) { int loc = order[docId]; if (loc == 0) { return; } proc.onValue(docId, values[loc]); }
private void updateImage () { boolean isPressed = isPressed(); if (isDisabled() && style.imageDisabled != null) image.setDrawable(style.imageDisabled); else if (isPressed && style.imageDown != null) image.setDrawable(style.imageDown); else if (isChecked && style.imageChecked != null) image.setDrawable...
private void updateImage () { boolean isPressed = isPressed(); if (isDisabled && style.imageDisabled != null) image.setDrawable(style.imageDisabled); else if (isPressed && style.imageDown != null) image.setDrawable(style.imageDown); else if (isChecked && style.imageChecked != null) image.setDrawable((...
private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null || !getDebug()) return; shapes.set(ShapeType.Line); shapes.setColor(getStage().getDebugColor()); float x = 0, y = 0; if (!isTransform()) { x = getX(); y = getY(); } for (int i = 0, n = debugRects.size; i < n; i++) { Debu...
private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null || !getDebug()) return; shapes.set(ShapeType.Line); shapes.setColor(getStage().getDebugColor()); float x = 0, y = 0; if (!isTransform()) { x = getX(); y = getY(); } for (int i = 0, n = debugRects.size; i < n; i++) { Debu...
public void draw (Batch batch, float parentAlpha) { Color fontColor; if (isDisabled() && style.disabledFontColor != null) fontColor = style.disabledFontColor; else if (isPressed() && style.downFontColor != null) fontColor = style.downFontColor; else if (isChecked && style.checkedFontColor != null) fon...
public void draw (Batch batch, float parentAlpha) { Color fontColor; if (isDisabled && style.disabledFontColor != null) fontColor = style.disabledFontColor; else if (isPressed() && style.downFontColor != null) fontColor = style.downFontColor; else if (isChecked && style.checkedFontColor != null) fontC...
public boolean touchDown (int screenX, int screenY, int pointer, int button) { boolean result = false; if (button == Buttons.LEFT) { Ray ray = camera.getPickRay(screenX, screenY); tmpV1.set(ray.direction).scl(10f).add(ray.origin); ClosestRayResultCallback cb = new ClosestRayResultCallback(ray.origin, tmpV...
public boolean touchDown (int screenX, int screenY, int pointer, int button) { boolean result = false; if (button == Buttons.LEFT) { Ray ray = camera.getPickRay(screenX, screenY); tmpV1.set(ray.direction).scl(10f).add(ray.origin); ClosestRayResultCallback cb = new ClosestRayResultCallback(ray.origin, tmpV...
public static Locale parseLocaleString(String localeString) { String[] parts = tokenizeToStringArray(localeString, "_ ", false, false); String language = (parts.length > 0 ? parts[0] : ""); String country = (parts.length > 1 ? parts[1] : ""); String variant = ""; if (parts.le...
public static Locale parseLocaleString(String localeString) { String[] parts = tokenizeToStringArray(localeString, "_ ", false, false); String language = (parts.length != 0 ? parts[0] : ""); String country = (parts.length > 1 ? parts[1] : ""); String variant = ""; if (parts.l...
public void refreshSource() throws FailedToGenerateSourceMapperException { try { XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON); builder.startObject(); toXContent(builder, ToXContent.EMPTY_PARAMS); builder.endObject(); ...
public void refreshSource() throws FailedToGenerateSourceMapperException { try { XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON); builder.startObject(); toXContent(builder, ToXContent.EMPTY_PARAMS); builder.endObject(); ...
public void handleRequest(final RestRequest request, final RestChannel channel) { boolean helpWanted = request.paramAsBoolean("h", false); if (helpWanted) { Table table = getTableWithHeader(request); int[] width = buildHelpWidths(table, request, false); StringBuil...
public void handleRequest(final RestRequest request, final RestChannel channel) { boolean helpWanted = request.paramAsBoolean("help", false); if (helpWanted) { Table table = getTableWithHeader(request); int[] width = buildHelpWidths(table, request, false); StringB...
private static List<DisplayHeader> buildDisplayHeaders(Table table, RestRequest request) { String pHeaders = request.param("headers"); List<DisplayHeader> display = new ArrayList<DisplayHeader>(); if (pHeaders != null) { for (String possibility : Strings.splitStringByCommaToArray...
private static List<DisplayHeader> buildDisplayHeaders(Table table, RestRequest request) { String pHeaders = request.param("h"); List<DisplayHeader> display = new ArrayList<DisplayHeader>(); if (pHeaders != null) { for (String possibility : Strings.splitStringByCommaToArray(pHead...
public void play () { if (track.isPaused()) { track.setPaused(false); } else if (!track.isPlaying()) { track.play(); } }
public void play () { if (track.isPaused()) { track.setPaused(false); } else { track.play(); } }
public int hashCode () { int result = (int)type; result = 947 * result + (blended ? 1 : 0); result = 947 * result + sourceFunction; result = 947 * result + destFunction; result = 947 * result + NumberUtils.floatToRawIntBits(opacity); return result; }
public int hashCode () { int result = super.hashCode(); result = 947 * result + (blended ? 1 : 0); result = 947 * result + sourceFunction; result = 947 * result + destFunction; result = 947 * result + NumberUtils.floatToRawIntBits(opacity); return result; }
public int hashCode () { int result = (int)type; result = 953 * result + color.hashCode(); return result; }
public int hashCode () { int result = super.hashCode(); result = 953 * result + color.hashCode(); return result; }
public int hashCode () { int result = (int)type; result = 967 * result + textureDescription.hashCode(); return result; }
public int hashCode () { int result = super.hashCode(); result = 967 * result + textureDescription.hashCode(); return result; }
public int hashCode () { int result = (int)type; result = 971 * result + depthFunc; result = 971 * result + NumberUtils.floatToRawIntBits(depthRangeNear); result = 971 * result + NumberUtils.floatToRawIntBits(depthRangeFar); result = 971 * result + (depthMask ? 1 : 0); return result; }
public int hashCode () { int result = super.hashCode(); result = 971 * result + depthFunc; result = 971 * result + NumberUtils.floatToRawIntBits(depthRangeNear); result = 971 * result + NumberUtils.floatToRawIntBits(depthRangeFar); result = 971 * result + (depthMask ? 1 : 0); return result; }
public int hashCode () { int result = (int)type; result = 977 * result + NumberUtils.floatToRawIntBits(value); return result; }
public int hashCode () { int result = super.hashCode(); result = 977 * result + NumberUtils.floatToRawIntBits(value); return result; }
public int hashCode () { int result = (int)type; result = 983 * result + value; return result; }
public int hashCode () { int result = super.hashCode(); result = 983 * result + value; return result; }
public int hashCode () { int result = (int)type; result = 991 * result + textureDescription.hashCode(); result = 991 * result + NumberUtils.floatToRawIntBits(offsetU); result = 991 * result + NumberUtils.floatToRawIntBits(offsetV); result = 991 * result + NumberUtils.floatToRawIntBits(scaleU); result = 991...
public int hashCode () { int result = super.hashCode(); result = 991 * result + textureDescription.hashCode(); result = 991 * result + NumberUtils.floatToRawIntBits(offsetU); result = 991 * result + NumberUtils.floatToRawIntBits(offsetV); result = 991 * result + NumberUtils.floatToRawIntBits(scaleU); resul...
private String getAvatarFilenameForUrl(String avatarUrl) { return Base64.encodeToString(avatarUrl.getBytes(), Base64.DEFAULT); }
private String getAvatarFilenameForUrl(String avatarUrl) { return Base64.encodeToString(avatarUrl.getBytes(), Base64.NO_WRAP); }
public Matrix4 setToLookAt (Vector3 position, Vector3 target, Vector3 up) { tmpVec.set(target).sub(position); setToLookAt(tmpVec, up); this.mul(tmpMat.setToTranslation(-position.x, -position.y, -position.z)); return this; }
public Matrix4 setToLookAt (Vector3 position, Vector3 target, Vector3 up) { tmpVec.set(target).sub(position); setToLookAt(tmpVec, up); this.mul(tmpMat.setToTranslation(position.tmp().scl(-1))); return this; }
public void onInternalTick (btDynamicsWorld dynamicsWorld, float timeStep) { btCollisionObjectArray objs = dynamicsWorld.getCollisionObjectArray(); dynamicsWorld.clearForces(); int idx = 0; for (int i = 0; i < objs.size(); i++) { btRigidBody body = (btRigidBody)(objs.at(i)); if (body == null || bo...
public void onInternalTick (btDynamicsWorld dynamicsWorld, float timeStep) { btCollisionObjectArray objs = dynamicsWorld.getCollisionObjectArray(); dynamicsWorld.clearForces(); int idx = 0; for (int i = 0; i < objs.size(); i++) { btRigidBody body = (btRigidBody)(objs.at(i)); if (body == null || bo...
public boolean tap (float x, float y, int count, int button) { Ray ray = camera.getPickRay(x, y); rayFrom.set(ray.origin); rayTo.set(ray.direction).scl(50f).add(rayFrom); // 50 meters max from the origin // Because we reuse the ClosestRayResultCallback, we need reset it's values rayTestCB.setCollisionObject...
public boolean tap (float x, float y, int count, int button) { Ray ray = camera.getPickRay(x, y); rayFrom.set(ray.origin); rayTo.set(ray.direction).scl(50f).add(rayFrom); // 50 meters max from the origin // Because we reuse the ClosestRayResultCallback, we need reset it's values rayTestCB.setCollisionObject...
public BulletWorld createWorld () { btDefaultCollisionConfiguration collisionConfiguration = new btSoftBodyRigidBodyCollisionConfiguration(); btCollisionDispatcher dispatcher = new btCollisionDispatcher(collisionConfiguration); btAxisSweep3 broadphase = new btAxisSweep3(tmpV1.set(-1000, -1000, -1000), tmpV2.set(...
public BulletWorld createWorld () { btDefaultCollisionConfiguration collisionConfiguration = new btSoftBodyRigidBodyCollisionConfiguration(); btCollisionDispatcher dispatcher = new btCollisionDispatcher(collisionConfiguration); btAxisSweep3 broadphase = new btAxisSweep3(Vector3.tmp.set(-1000, -1000, -1000), Vect...
@Override protected void configure() { bind(MergePolicyProvider.class) .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class)) .asEagerSingleton(); }
@Override protected void configure() { bind(MergePolicyProvider.class) .to(settings.getAsClass("index.merge.policy.type", TieredMergePolicyProvider.class, "org.elasticsearch.index.merge.policy", "MergePolicyProvider")) .asEagerSingleton(); }
@Override protected void configure() { bind(MergeSchedulerProvider.class) .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class)) .asEagerSingleton();
@Override protected void configure() { bind(MergeSchedulerProvider.class) .to(settings.getAsClass(TYPE, ConcurrentMergeSchedulerProvider.class, "org.elasticsearch.index.scheduler", "MergeSchedulerProvider")) .asEagerSingleton();
public void render () { batch.setProjectionMatrix(projection); batch.setTransformMatrix(identity); batch.begin(); root.render(batch); batch.end(); }
public void render () { batch.setProjectionMatrix(projection); batch.setTransformMatrix(identity); batch.begin(); root.draw(batch, 1); batch.end(); }
private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null) return; shapes.set(ShapeType.Line); shapes.setColor(getStage().getDebugColor()); for (int i = 0, n = debugRects.size; i < n; i++) { DebugRect debugRect = debugRects.get(i); shapes.setColor(debugRect.color); shapes.rect(getX()...
private void drawDebugRects (ShapeRenderer shapes) { if (debugRects == null || !getDebug()) return; shapes.set(ShapeType.Line); shapes.setColor(getStage().getDebugColor()); for (int i = 0, n = debugRects.size; i < n; i++) { DebugRect debugRect = debugRects.get(i); shapes.setColor(debugRect.color); sha...
public void consumeCompressedData (int target) { throw new GdxRuntimeException("This TextureData implementation does not upload data itself"); } }
public void consumeCustomData (int target) { throw new GdxRuntimeException("This TextureData implementation does not upload data itself"); } }
public void hideList () { if (list.getParent() == null) return; getStage().removeCaptureListener(list.stageListener) list.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor())); }
public void hideList () { if (list.getParent() == null) return; getStage().removeCaptureListener(list.stageListener); list.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor())); }
public Array<Element> getChildrenByName(String name) { Array<Element> children = new Array<Element>(); if(this.children == null) return children; for(int i = 0; i < this.children.size; i++) { Element child = children.get(i); if(child.name.equals(name)) children.add(child); } return children; ...
public Array<Element> getChildrenByName(String name) { Array<Element> children = new Array<Element>(); if(this.children == null) return children; for(int i = 0; i < this.children.size; i++) { Element child = this.children.get(i); if(child.name.equals(name)) children.add(child); } return childre...
public Matrix4 calculateLocalTransform() { if (!isAnimated) localTransform.set(translation, rotation, scale); return localTransform; }
public Matrix4 calculateLocalTransform() { if (!isAnimated) localTransform.idt().translate(translation).rotate(rotation).scale(scale.x, scale.y, scale.z); return localTransform; }
protected void updateRelative (float percentDelta) { actor.translate(amountX * percentDelta, amountY * percentDelta); }
protected void updateRelative (float percentDelta) { actor.moveBy(amountX * percentDelta, amountY * percentDelta); }
protected void updateRelative (float percentDelta) { actor.rotate(amount * percentDelta); }
protected void updateRelative (float percentDelta) { actor.rotateBy(amount * percentDelta); }
protected void updateRelative (float percentDelta) { actor.scale(amountX * percentDelta, amountY * percentDelta); }
protected void updateRelative (float percentDelta) { actor.scaleBy(amountX * percentDelta, amountY * percentDelta); }
protected void updateRelative (float percentDelta) { actor.size(amountWidth * percentDelta, amountHeight * percentDelta); }
protected void updateRelative (float percentDelta) { actor.sizeBy(amountWidth * percentDelta, amountHeight * percentDelta); }
public static void defaultNearCallback(btBroadphasePair collisionPair, btCollisionDispatcher dispatcher, btDispatcherInfo dispatchInfo) { CollisionJNI.btCollisionDispatcher_defaultNearCallback(btBroadphasePair.getCPtr(collisionPair), collisionPair, btCollisionDispatcher.getCPtr(dispatcher), dispatcher, btDispatch...
public static void defaultNearCallback(btBroadphasePair collisionPair, btCollisionDispatcher dispatcher, btDispatcherInfo dispatchInfo) { CollisionJNI.btCollisionDispatcher_defaultNearCallback(collisionPair, btCollisionDispatcher.getCPtr(dispatcher), dispatcher, btDispatcherInfo.getCPtr(dispatchInfo), dispatchInf...
public boolean processOverlap(btBroadphasePair pair) { return CollisionJNI.btOverlapCallback_processOverlap(swigCPtr, this, btBroadphasePair.getCPtr(pair), pair); }
public boolean processOverlap(btBroadphasePair pair) { return CollisionJNI.btOverlapCallback_processOverlap(swigCPtr, this, pair); }
public static boolean is64Bit () { String arch = System.getProperty("os.arch"); return arch.toLowerCase().contains("amd64"); } public static boolean loadLibrary (String libName, String classPath, String outputPath) { // if (new File(outputPath + libName).exists()) // return true; InputStream in = null; Buf...
public static boolean is64Bit () { String arch = System.getProperty("os.arch"); return arch.toLowerCase().contains("amd64"); } public static boolean loadLibrary (String libName, String classPath, String outputPath) { // if (new File(outputPath + libName).exists()) // return true; InputStream in = null; Buf...
private void verify(IndexWriter writer) throws Exception { CheckIndex checkIndex = new CheckIndex(writer.getDirectory()); CheckIndex.Status status = checkIndex.checkIndex(); assertThat(status.clean, equalTo(true)); IndexReader reader = DirectoryReader.open(writer, true); fina...
private void verify(IndexWriter writer) throws Exception { CheckIndex checkIndex = new CheckIndex(writer.getDirectory()); CheckIndex.Status status = checkIndex.checkIndex(); assertThat(status.clean, equalTo(true)); IndexReader reader = DirectoryReader.open(writer, true); fina...
public void process(MetaData metaData, String aliasOrIndex, @Nullable MappingMetaData mappingMd, boolean allowIdGeneration) throws ElasticSearchException { // resolve the routing if needed routing(metaData.resolveIndexRouting(routing, aliasOrIndex)); // resolve timestamp if provided external...
public void process(MetaData metaData, String aliasOrIndex, @Nullable MappingMetaData mappingMd, boolean allowIdGeneration) throws ElasticSearchException { // resolve the routing if needed routing(metaData.resolveIndexRouting(routing, aliasOrIndex)); // resolve timestamp if provided external...
public void dynamicUpdateMinimumMasterNodes() throws InterruptedException { Settings settings = settingsBuilder() .put("discovery.type", "zen") .put("discovery.zen.ping_timeout", "200ms") .put("discovery.initial_state_timeout", "500ms") .put("g...
public void dynamicUpdateMinimumMasterNodes() throws InterruptedException { Settings settings = settingsBuilder() .put("discovery.type", "zen") .put("discovery.zen.ping_timeout", "400ms") .put("discovery.initial_state_timeout", "500ms") .put("g...
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.SpritePerformanteTest2(), "Debug Test", 800, 600, false); }
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.Gdx2DTest(), "Debug Test", 280, 100, false); }
public FullCommitFile add(final CommitComment comment) { int line = comment.getLine(); if (line >= 0) { List<CommitComment> lineComments = comments.get(line); if (lineComments == null) { lineComments = new ArrayList<CommitComment>(4); comments....
public FullCommitFile add(final CommitComment comment) { int line = comment.getPosition(); if (line >= 0) { List<CommitComment> lineComments = comments.get(line); if (lineComments == null) { lineComments = new ArrayList<CommitComment>(4); comme...
public DepthShader(final ShaderProgram shaderProgram, final Renderable renderable, int numBones) { super(shaderProgram, renderable, false, false, false, 0, 0, 0, numBones); this.numBones = numBones; int w = 0; final int n = renderable.mesh.getVertexAttributes().size(); for (int i = 0; i < n; i++) { final ...
public DepthShader(final ShaderProgram shaderProgram, final Renderable renderable, int numBones) { super(shaderProgram, renderable, false, false, false, false, 0, 0, 0, numBones); this.numBones = numBones; int w = 0; final int n = renderable.mesh.getVertexAttributes().size(); for (int i = 0; i < n; i++) { ...
public IdentityMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils...
public IdentityMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPo...
public IntFloatMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils...
public IntFloatMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPo...
public IntIntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.n...
public IntIntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowe...
public IntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.next...
public IntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowerOf...
public IntSet (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.next...
public IntSet (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowerOf...
public LongMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nex...
public LongMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowerO...
public ObjectFloatMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUt...
public ObjectFloatMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nex...
public ObjectIntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtil...
public ObjectIntMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextP...
public ObjectMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.n...
public ObjectMap (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowe...
public ObjectSet (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (initialCapacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.n...
public ObjectSet (int initialCapacity, float loadFactor) { if (initialCapacity < 0) throw new IllegalArgumentException("initialCapacity must be >= 0: " + initialCapacity); if (capacity > 1 << 30) throw new IllegalArgumentException("initialCapacity is too large: " + initialCapacity); capacity = MathUtils.nextPowe...
public CheckBox (String text, CheckBoxStyle style) { super(text, style); clear(); add(image = new Image(style.checkboxOff)); Label label = getLabel(); add(label); label.setAlignment(Align.left); setWidth(getPrefWidth()); setHeight(getPrefHeight()); }
public CheckBox (String text, CheckBoxStyle style) { super(text, style); clearChildren(); add(image = new Image(style.checkboxOff)); Label label = getLabel(); add(label); label.setAlignment(Align.left); setWidth(getPrefWidth()); setHeight(getPrefHeight()); }
public void render () { Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); Gdx.gl10.glColor4f(1, 1, 1, 1); renderer.setProjectionMatrix(camera.combined); renderer.setColor(1, 1, 1, 1); renderer.begin(ShapeType.Line); for (int j = 0; j < coords.length - 2; j += 2) { renderer.line(coords[j], coords[j + 1], coords...
public void render () { Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); Gdx.gl10.glColor4f(1, 1, 1, 1); renderer.setProjectionMatrix(camera.combined); renderer.setColor(1, 1, 1, 1); renderer.begin(ShapeType.Line); for (int j = 0; j < coords.length - 2; j += 2) { renderer.line(coords[j], coords[j + 1], coords...
public void render () { // red.a = (red.a + Gdx.graphics.getDeltaTime() * 0.1f) % 1; int viewHeight = Gdx.graphics.getHeight(); Gdx.gl.glClearColor(1, 1, 1, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); spriteBatch.begin(); String text = "Sphinx of black quartz, judge my vow."; font.setColor(Color.RED...
public void render () { // red.a = (red.a + Gdx.graphics.getDeltaTime() * 0.1f) % 1; int viewHeight = Gdx.graphics.getHeight(); Gdx.gl.glClearColor(1, 1, 1, 1); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); spriteBatch.begin(); String text = "Sphinx of black quartz, judge my vow."; font.setColor(Color.RED...
private void renderBox (Body body, float halfWidth, float halfHeight) { // get the bodies center and angle in world coordinates Vector2 pos = body.getWorldCenter(); float angle = body.getAngle(); // set the translation and rotation matrix transform.setToTranslation(pos.x, pos.y, 0); transform.rotate(0, 0,...
private void renderBox (Body body, float halfWidth, float halfHeight) { // get the bodies center and angle in world coordinates Vector2 pos = body.getWorldCenter(); float angle = body.getAngle(); // set the translation and rotation matrix transform.setToTranslation(pos.x, pos.y, 0); transform.rotate(0, 0,...
public void render () { time += Gdx.graphics.getDeltaTime(); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); batch.begin(); // badlogic.draw(batch); // star.draw(batch); // font.draw(batch, "This font was packed!", 26, 65); badlogicSmall.draw(batch); renderer.begin(ShapeType.Rectangle); renderer.rect(10, 1...
public void render () { time += Gdx.graphics.getDeltaTime(); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); batch.begin(); // badlogic.draw(batch); // star.draw(batch); // font.draw(batch, "This font was packed!", 26, 65); badlogicSmall.draw(batch); renderer.begin(ShapeType.Line); renderer.rect(10, 10, 25...
public void create () { super.create(); internalTickCallback = new TestInternalTickCallback(world.dynamicsWorld);
public void create () { super.create(); internalTickCallback = new TestInternalTickCallback((btDynamicsWorld)world.collisionWorld);
public boolean tap (float x, float y, int count, int button) { Ray ray = camera.getPickRay(x, y); rayFrom.set(ray.origin); rayTo.set(ray.direction).mul(50f).add(rayFrom); // 50 meters max from the origin // Because we reuse the ClosestRayResultCallback, we need reset it's values rayTestCB.setM_collisionObje...
public boolean tap (float x, float y, int count, int button) { Ray ray = camera.getPickRay(x, y); rayFrom.set(ray.origin); rayTo.set(ray.direction).mul(50f).add(rayFrom); // 50 meters max from the origin // Because we reuse the ClosestRayResultCallback, we need reset it's values rayTestCB.setM_collisionObje...
public GraphicsType getType() { return null; }
public GraphicsType getType() { return GraphicsType.iOSGL; }
T getMergePolicy(); /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you m...
T getMergePolicy(); /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you m...
public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVLong(length); out.writeOptionalString(checksum); if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_1_3_0)) { out.writeOptionalString(writtenBy == null ? null : writtenBy.n...
public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVLong(length); out.writeOptionalString(checksum); if (out.getVersion().onOrAfter(org.elasticsearch.Version.V_1_3_0)) { out.writeOptionalString(writtenBy == null ? null : writtenBy.t...
public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(recoveryId); shardId.writeTo(out); out.writeString(metaData.name()); out.writeVLong(position); out.writeVLong(metaData.length()); out.writeOptionalString(metaData.chec...
public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeLong(recoveryId); shardId.writeTo(out); out.writeString(metaData.name()); out.writeVLong(position); out.writeVLong(metaData.length()); out.writeOptionalString(metaData.chec...
private void set(int i, Object o) { if (o == null) { values[i].length = 0; } else { values[i].copyChars(o.toString()); } }
private void set(int i, Object o) { if (o == null) { values[i].clear(); } else { values[i].copyChars(o.toString()); } }
public void setUp() throws Exception { super.setUp(); referenceAll = Maps.newHashMap(); referenceNotDeleted = Maps.newHashMap(); referenceFilter = Maps.newHashMap(); Directory dir = newDirectory(); IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, n...
public void setUp() throws Exception { super.setUp(); referenceAll = Maps.newHashMap(); referenceNotDeleted = Maps.newHashMap(); referenceFilter = Maps.newHashMap(); Directory dir = newDirectory(); IndexWriterConfig conf = newIndexWriterConfig(new KeywordAnalyzer());...
public void test() throws Exception { Directory dir = newDirectory(); IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, null); iwc.setMergePolicy(newLogMergePolicy()); IndexWriter iw = new IndexWriter(dir, iwc); Document doc = new Document(); ...
public void test() throws Exception { Directory dir = newDirectory(); IndexWriterConfig iwc = newIndexWriterConfig(null); iwc.setMergePolicy(newLogMergePolicy()); IndexWriter iw = new IndexWriter(dir, iwc); Document doc = new Document(); doc.add(new SortedDoc...
public void act(float delta) { super.act(delta); if(smoothscrolldestx != -1 && smoothscrolldesty != -1){ touchable = false; scrolledtime += (delta * 1000); float relscrolltime = ((float) 1f/scrolltime) * scrolledtime; if(smoothscrolldestx > scrollstarth){ //hScrollAmount += (((sm...
public void act(float delta) { super.act(delta); if(smoothscrolldestx != -1 && smoothscrolldesty != -1){ touchable = false; scrolledtime += (delta * 1000); float relscrolltime = ((float) 1f/scrolltime) * scrolledtime; if(smoothscrolldestx > scrollstarth){ //hScrollAmount += (((sm...
@Override public void handleException(RemoteTransportException exp) { // check if the master node did not get switched on us... if (sentToNode.equals(MasterFaultDetection.this.masterNode())) { ...
@Override public void handleException(RemoteTransportException exp) { // check if the master node did not get switched on us... if (sentToNode.equals(MasterFaultDetection.this.masterNode())) { ...
@Override public void handleException(RemoteTransportException exp) { // check if the master node did not get switched on us... if (running) { NodeFD nodeFD = nodesFD.get(node); ...
@Override public void handleException(RemoteTransportException exp) { // check if the master node did not get switched on us... if (running) { NodeFD nodeFD = nodesFD.get(node); ...
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { ChannelBuffer buffer = (ChannelBuffer) event.getMessage(); int size = buffer.getInt(buffer.readerIndex() - 4); transportServiceAdapter.received(size); int markedReaderIndex = bu...
@Override public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { ChannelBuffer buffer = (ChannelBuffer) event.getMessage(); int size = buffer.getInt(buffer.readerIndex() - 4); transportServiceAdapter.received(size + 4); int markedReaderIndex ...
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public void create () { Gdx.audio.newSound(Gdx.files.internal("data/chirp.ogg")).play(); }
public void create () { Gdx.audio.newSound(Gdx.files.internal("data/tic.ogg")).play(); }
public void unbind () { GL10 gl = Gdx.gl10; int textureUnit = 0; int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { VertexAttribute attribute = attributes.get(i); switch (attribute.usage) { case Usage.Position: break; // no-op, we also need a position bound in gles ...
public void unbind () { GL10 gl = Gdx.gl10; int textureUnit = 0; int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { VertexAttribute attribute = attributes.get(i); switch (attribute.usage) { case Usage.Position: break; // no-op, we always need a position bound in gle...
public void create () { stage = new Stage(0, 0, false, new SpriteBatch()); Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"), Gdx.files.internal("data/uiskin.png")); for (int i = 0; i < 1000; i++) { TextButton t = new TextButton("Button"+i, skin); t.x = MathUtils.random(0, Gdx.graphics.getWidth()...
public void create () { stage = new Stage(0, 0, false, new SpriteBatch()); Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"), Gdx.files.internal("data/uiskin.png")); for (int i = 0; i < 500; i++) { TextButton t = new TextButton("Button"+i, skin); t.x = MathUtils.random(0, Gdx.graphics.getWidth())...
public boolean needsGL20() { return super.needsGL20(); }
public boolean needsGL20() { return true; }
@Override protected GroupShardsIterator shards(RefreshRequest request, String[] concreteIndices, ClusterState clusterState) { return clusterState.routingTable().allActiveShardsGrouped(concreteIndices, true); }
@Override protected GroupShardsIterator shards(RefreshRequest request, String[] concreteIndices, ClusterState clusterState) { return clusterState.routingTable().allAssignedShardsGrouped(concreteIndices, true); }
@Override public void resize (int width, int height) { Gdx.app.log("Test", "Thread=" + Thread.currentThread().getId() + ", app resized"); }
@Override public void resize (int width, int height) { Gdx.app.log("Test", "Thread=" + Thread.currentThread().getId() + ", app resized: " + width + "x" + height + ", Graphics says: "+ Gdx.graphics.getWidth() + "x" + Gdx.graphics.getHeight()); }
@Test public void testParseToJsonAndParse() throws Exception { String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/json/simple/test-mapping.json"); JsonDocumentMapper docMapper = (JsonDocumentMapper) new JsonDocumentMapperParser(new AnalysisService(new Index("test"))).parse(m...
@Test public void testParseToJsonAndParse() throws Exception { String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/json/simple/test-mapping.json"); JsonDocumentMapper docMapper = (JsonDocumentMapper) new JsonDocumentMapperParser(new AnalysisService(new Index("test"))).parse(m...
public static long getCPtr(SWIGTYPE_p_PHY_ScalarType obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
protected static long getCPtr(SWIGTYPE_p_PHY_ScalarType obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
public static long getCPtr(SWIGTYPE_p_bParse__btBulletFile obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
protected static long getCPtr(SWIGTYPE_p_bParse__btBulletFile obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
public static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_ConvexH__HalfEdge_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
protected static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_ConvexH__HalfEdge_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
public static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_Face_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
protected static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_Face_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
public static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }
protected static long getCPtr(SWIGTYPE_p_btAlignedObjectArrayT_GrahamVector3_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } }