com.badlogic.gdx.physics.bullet.linearmath.btMatrix3x3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-bullet-teavm Show documentation
Show all versions of gdx-bullet-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
/*-------------------------------------------------------
* This file was generated by JParser
*
* Do not make changes to this file
*-------------------------------------------------------*/
package com.badlogic.gdx.physics.bullet.linearmath;
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.math.Quaternion;
import com.badlogic.gdx.math.Vector3;
/**
* @author xpenatan
*/
public class btMatrix3x3 extends BulletBase {
public static btMatrix3x3 WRAPPER_GEN_01 = new btMatrix3x3(false);
public btMatrix3x3() {
this(true);
}
/**
* Useful on creating temp objects
*/
public btMatrix3x3(boolean cMemoryOwn) {
initObject(cMemoryOwn ? createNative() : 0, cMemoryOwn);
}
@org.teavm.jso.JSBody(script = "var jsObj = new Bullet.btMatrix3x3(); return Bullet.getPointer(jsObj);")
private static native int createNative();
@Override
protected void deleteNative() {
deleteNative((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btMatrix3x3); Bullet.destroy(jsObj);")
private static native void deleteNative(int addr);
public void setEulerZYX(float ex, float ey, float ez) {
setEulerZYXNATIVE((int) cPointer, ex, ey, ez);
}
@org.teavm.jso.JSBody(params = {"addr", "ex", "ey", "ez"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btMatrix3x3);jsObj.setEulerZYX(ex, ey, ez);")
private static native void setEulerZYXNATIVE(int addr, float ex, float ey, float ez);
public void getRotation(btQuaternion q) {
getRotationNATIVE((int) cPointer, (int) q.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "qAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btMatrix3x3);jsObj.getRotation(qAddr);")
private static native void getRotationNATIVE(int addr, int qAddr);
public void getRotation(Quaternion qGDX) {
btQuaternion.convert(qGDX, btQuaternion.TEMP_0);
btQuaternion q = btQuaternion.TEMP_0;
getRotationNATIVE((int) cPointer, (int) q.getCPointer());
}
public Vector3 getRow(int i) {
int pointer = getRowNATIVE((int) cPointer, i);
btVector3.WRAPPER_GEN_01.setPointer(pointer);
btVector3.convert(btVector3.WRAPPER_GEN_01, btVector3.TEMP_GDX_01);
return btVector3.TEMP_GDX_01;
}
@org.teavm.jso.JSBody(params = {"addr", "i"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btMatrix3x3);var returnedJSObj = jsObj.getRow(i);return Bullet.getPointer(returnedJSObj);")
private static native int getRowNATIVE(int addr, int i);
public Vector3 getColumn(int y) {
int pointer = getColumnNATIVE((int) cPointer, y);
btVector3.WRAPPER_GEN_01.setPointer(pointer);
btVector3.convert(btVector3.WRAPPER_GEN_01, btVector3.TEMP_GDX_01);
return btVector3.TEMP_GDX_01;
}
@org.teavm.jso.JSBody(params = {"addr", "y"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btMatrix3x3);var returnedJSObj = jsObj.getColumn(y);return Bullet.getPointer(returnedJSObj);")
private static native int getColumnNATIVE(int addr, int y);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy